home *** CD-ROM | disk | FTP | other *** search
/ Apple Software Dispatch / Apple Software Dispatch.iso / Software Dispatch Files / Lemmings / Trial Version / Trial Version.rsrc / CODE_2.txt < prev    next >
Text File  |  1992-10-22  |  462KB  |  8,343 lines

  1. # near model CODE resource
  2. # jump table entries: 80-107 (28 of them)
  3. export_34:
  4. 00000000  4EBA 00DC                jsr        [PC + 0xDC /* 000000DE */]
  5. 00000004  4A2D CE68                tst.b      [A5 - 0x3198]
  6. 00000008  6604                     bne        +0x6 /* 0000000E */
  7. 0000000A  4EBA 0146                jsr        [PC + 0x146 /* 00000152 */]
  8. label0000000E:
  9. 0000000E  4A2D CE68                tst.b      [A5 - 0x3198]
  10. 00000012  6604                     bne        +0x6 /* 00000018 */
  11. 00000014  4EBA 021E                jsr        [PC + 0x21E /* 00000234 */]
  12. label00000018:
  13. 00000018  4A2D CE68                tst.b      [A5 - 0x3198]
  14. 0000001C  6600 009C                bne        +0x9E /* 000000BA */
  15. 00000020  4EBA 050A                jsr        [PC + 0x50A /* 0000052C */]
  16. 00000024  6000 0094                bra        +0x96 /* 000000BA */
  17. label00000028:
  18. 00000028  4A2D CE60                tst.b      [A5 - 0x31A0]
  19. 0000002C  6714                     beq        +0x16 /* 00000042 */
  20. 0000002E  4227                     clr.b      -[A7]
  21. 00000030  3F3C FFFF                move.w     -[A7], 0xFFFF
  22. 00000034  486D D650                pea.l      [A5 - 0x29B0]
  23. 00000038  42A7                     clr.l      -[A7]
  24. 0000003A  42A7                     clr.l      -[A7]
  25. 0000003C  A860                     syscall    WaitNextEvent
  26. 0000003E  548F                     addq.l     A7, 2
  27. 00000040  6010                     bra        +0x12 /* 00000052 */
  28. label00000042:
  29. 00000042  A9B4                     syscall    SystemTask
  30. 00000044  4227                     clr.b      -[A7]
  31. 00000046  3F3C FFFF                move.w     -[A7], 0xFFFF
  32. 0000004A  486D D650                pea.l      [A5 - 0x29B0]
  33. 0000004E  A970                     syscall    GetNextEvent
  34. 00000050  548F                     addq.l     A7, 2
  35. label00000052:
  36. 00000052  4EBA 138C                jsr        [PC + 0x138C /* 000013E0 */]
  37. 00000056  4A2D CE62                tst.b      [A5 - 0x319E]
  38. 0000005A  675E                     beq        +0x60 /* 000000BA */
  39. 0000005C  42A7                     clr.l      -[A7]
  40. 0000005E  A975                     syscall    TickCount
  41. 00000060  2B5F D616                move.l     [A5 - 0x29EA], [A7]+
  42. 00000064  302D CFDC                move.w     D0, [A5 - 0x3024]
  43. 00000068  0C40 000A                cmpi.w     D0, 0xA /* '\n' */
  44. 0000006C  624C                     bhi        +0x4E /* 000000BA */
  45. 0000006E  43FA 0058                lea.l      A1, [PC + 0x58 /* 000000C8, value 0xFFB2FFB8 */]
  46. 00000072  D040                     add.w      D0, D0
  47. 00000074  D2F1 0000                add.w      A1, [A1 + D0.w]
  48. 00000078  4ED1                     jmp        [A1]
  49. 0000007A  4EBA 200C                jsr        [PC + 0x200C /* 00002088 */]
  50. 0000007E  603A                     bra        +0x3C /* 000000BA */
  51. 00000080  4EBA 2162                jsr        [PC + 0x2162 /* 000021E4 */]
  52. 00000084  6034                     bra        +0x36 /* 000000BA */
  53. 00000086  4EBA 224A                jsr        [PC + 0x224A /* 000022D2 */]
  54. 0000008A  602E                     bra        +0x30 /* 000000BA */
  55. 0000008C  4EBA 22A8                jsr        [PC + 0x22A8 /* 00002336 */]
  56. 00000090  6028                     bra        +0x2A /* 000000BA */
  57. 00000092  4EBA 23E4                jsr        [PC + 0x23E4 /* 00002478 */]
  58. 00000096  6022                     bra        +0x24 /* 000000BA */
  59. 00000098  4EBA 2454                jsr        [PC + 0x2454 /* 000024EE */]
  60. 0000009C  601C                     bra        +0x1E /* 000000BA */
  61. 0000009E  4EBA 24C8                jsr        [PC + 0x24C8 /* 00002568 */]
  62. 000000A2  6016                     bra        +0x18 /* 000000BA */
  63. 000000A4  4EBA 2572                jsr        [PC + 0x2572 /* 00002618 */]
  64. 000000A8  6010                     bra        +0x12 /* 000000BA */
  65. 000000AA  4EBA 25D6                jsr        [PC + 0x25D6 /* 00002682 */]
  66. 000000AE  600A                     bra        +0xC /* 000000BA */
  67. 000000B0  4EBA 2650                jsr        [PC + 0x2650 /* 00002702 */]
  68. 000000B4  6004                     bra        +0x6 /* 000000BA */
  69. 000000B6  4EBA 2688                jsr        [PC + 0x2688 /* 00002740 */]
  70. label000000BA:
  71. 000000BA  4A2D CE68                tst.b      [A5 - 0x3198]
  72. 000000BE  6700 FF68                beq        -0x96 /* 00000028 */
  73. 000000C2  4EBA 12D0                jsr        [PC + 0x12D0 /* 00001394 */]
  74. 000000C6  4E75                     rts
  75. 000000C8  FFB2                     .invalid   <<F/6/7>>
  76. 000000CA  FFB8                     .invalid   <<F/6/7>>
  77. 000000CC  FFBE                     .invalid   <<F/6/7>>
  78. 000000CE  FFC4                     .invalid   <<F/7/7>>
  79. 000000D0  FFCA                     .invalid   <<F/7/7>>
  80. 000000D2  FFD0                     .invalid   <<F/7/7>>
  81. 000000D4  FFD6                     .invalid   <<F/7/7>>
  82. 000000D6  FFDC                     .invalid   <<F/7/7>>
  83. 000000D8  FFE2                     .invalid   <<F/7/7>>
  84. 000000DA  FFE8                     .invalid   <<F/7/7>>
  85. 000000DC  FFEE                     .invalid   <<F/7/7>>
  86. fn000000DE:
  87. 000000DE  A063                     syscall    MaxApplZone
  88. 000000E0  486D FDE8                pea.l      [A5 - 0x218]
  89. 000000E4  A86E                     syscall    InitGraf
  90. 000000E6  A8FE                     syscall    InitFonts
  91. 000000E8  A912                     syscall    InitWindows
  92. 000000EA  A930                     syscall    InitMenus
  93. 000000EC  A9CC                     syscall    TEInit
  94. 000000EE  42A7                     clr.l      -[A7]
  95. 000000F0  A97B                     syscall    InitDialogs
  96. 000000F2  A850                     syscall    InitCursor
  97. 000000F4  A01C                     syscall    FreeMem
  98. 000000F6  A040                     syscall    ResrvMem/ReserveMem
  99. 000000F8  A036                     syscall    MoreMasters
  100. 000000FA  A036                     syscall    MoreMasters
  101. 000000FC  A036                     syscall    MoreMasters
  102. 000000FE  A036                     syscall    MoreMasters
  103. 00000100  2F3C 0000 FFFF           move.l     -[A7], 0xFFFF
  104. 00000106  201F                     move.l     D0, [A7]+
  105. 00000108  A032                     syscall    FlushEvents
  106. 0000010A  4227                     clr.b      -[A7]
  107. 0000010C  3F3C FFFF                move.w     -[A7], 0xFFFF
  108. 00000110  486D D650                pea.l      [A5 - 0x29B0]
  109. 00000114  A970                     syscall    GetNextEvent
  110. 00000116  082D 0001 D65E           btst.b     [A5 - 0x29A2], 0x1
  111. 0000011C  548F                     addq.l     A7, 2
  112. 0000011E  6706                     beq        +0x8 /* 00000126 */
  113. 00000120  1B7C 0001 D677           move.b     [A5 - 0x2989], 0x1
  114. label00000126:
  115. 00000126  082D 0002 D65E           btst.b     [A5 - 0x29A2], 0x2
  116. 0000012C  6706                     beq        +0x8 /* 00000134 */
  117. 0000012E  1B7C 0001 D678           move.b     [A5 - 0x2988], 0x1
  118. label00000134:
  119. 00000134  082D 0004 D65E           btst.b     [A5 - 0x29A2], 0x4
  120. 0000013A  6706                     beq        +0x8 /* 00000142 */
  121. 0000013C  1B7C 0001 D679           move.b     [A5 - 0x2987], 0x1
  122. label00000142:
  123. 00000142  082D 0003 D65E           btst.b     [A5 - 0x29A2], 0x3
  124. 00000148  6706                     beq        +0x8 /* 00000150 */
  125. 0000014A  1B7C 0001 D67A           move.b     [A5 - 0x2986], 0x1
  126. label00000150:
  127. 00000150  4E75                     rts
  128. fn00000152:
  129. 00000152  4E56 FFFC                link       A6, -0x0004
  130. 00000156  2F07                     move.l     -[A7], D7
  131. 00000158  4267                     clr.w      -[A7]
  132. 0000015A  2F3C 6D61 6368           move.l     -[A7], 0x6D616368 /* 'mach' */
  133. 00000160  486E FFFC                pea.l      [A6 - 0x4]
  134. 00000164  4EBA 3726                jsr        [PC + 0x3726 /* 0000388C */]
  135. 00000168  3E1F                     move.w     D7, [A7]+
  136. 0000016A  4A47                     tst.w      D7
  137. 0000016C  6600 00B0                bne        +0xB2 /* 0000021E */
  138. 00000170  4267                     clr.w      -[A7]
  139. 00000172  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  140. 00000176  A86B                     syscall    LoWord
  141. 00000178  3B5F D590                move.w     [A5 - 0x2A70], [A7]+
  142. 0000017C  4267                     clr.w      -[A7]
  143. 0000017E  2F3C 7072 6F63           move.l     -[A7], 0x70726F63 /* 'proc' */
  144. 00000184  486E FFFC                pea.l      [A6 - 0x4]
  145. 00000188  4EBA 3702                jsr        [PC + 0x3702 /* 0000388C */]
  146. 0000018C  3E1F                     move.w     D7, [A7]+
  147. 0000018E  4A47                     tst.w      D7
  148. 00000190  6600 008C                bne        +0x8E /* 0000021E */
  149. 00000194  4267                     clr.w      -[A7]
  150. 00000196  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  151. 0000019A  A86B                     syscall    LoWord
  152. 0000019C  3B5F D592                move.w     [A5 - 0x2A6E], [A7]+
  153. 000001A0  4267                     clr.w      -[A7]
  154. 000001A2  2F3C 7379 7376           move.l     -[A7], 0x73797376 /* 'sysv' */
  155. 000001A8  486E FFFC                pea.l      [A6 - 0x4]
  156. 000001AC  4EBA 36DE                jsr        [PC + 0x36DE /* 0000388C */]
  157. 000001B0  3E1F                     move.w     D7, [A7]+
  158. 000001B2  4A47                     tst.w      D7
  159. 000001B4  6668                     bne        +0x6A /* 0000021E */
  160. 000001B6  4267                     clr.w      -[A7]
  161. 000001B8  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  162. 000001BC  A86B                     syscall    LoWord
  163. 000001BE  3B5F D594                move.w     [A5 - 0x2A6C], [A7]+
  164. 000001C2  4267                     clr.w      -[A7]
  165. 000001C4  2F3C 7164 2020           move.l     -[A7], 0x71642020 /* 'qd  ' */
  166. 000001CA  486E FFFC                pea.l      [A6 - 0x4]
  167. 000001CE  4EBA 36BC                jsr        [PC + 0x36BC /* 0000388C */]
  168. 000001D2  3E1F                     move.w     D7, [A7]+
  169. 000001D4  4A47                     tst.w      D7
  170. 000001D6  6646                     bne        +0x48 /* 0000021E */
  171. 000001D8  4267                     clr.w      -[A7]
  172. 000001DA  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  173. 000001DE  A86B                     syscall    LoWord
  174. 000001E0  3B5F D596                move.w     [A5 - 0x2A6A], [A7]+
  175. 000001E4  0C6D 0600 D594           cmpi.w     [A5 - 0x2A6C], 0x600
  176. 000001EA  650E                     bcs        +0x10 /* 000001FA */
  177. 000001EC  0C6D 0003 D592           cmpi.w     [A5 - 0x2A6E], 0x3
  178. 000001F2  6D06                     blt        +0x8 /* 000001FA */
  179. 000001F4  1B7C 0001 CE5E           move.b     [A5 - 0x31A2], 0x1
  180. label000001FA:
  181. 000001FA  0C6D 0200 D596           cmpi.w     [A5 - 0x2A6A], 0x200
  182. 00000200  6506                     bcs        +0x8 /* 00000208 */
  183. 00000202  1B7C 0001 CE5F           move.b     [A5 - 0x31A1], 0x1
  184. label00000208:
  185. 00000208  3F3C A860                move.w     -[A7], 0xA860
  186. 0000020C  4EBA 2844                jsr        [PC + 0x2844 /* 00002A52 */]
  187. 00000210  4A00                     tst.b      D0
  188. 00000212  548F                     addq.l     A7, 2
  189. 00000214  6716                     beq        +0x18 /* 0000022C */
  190. 00000216  1B7C 0001 CE60           move.b     [A5 - 0x31A0], 0x1
  191. 0000021C  600E                     bra        +0x10 /* 0000022C */
  192. label0000021E:
  193. 0000021E  3F3C 03E8                move.w     -[A7], 0x3E8
  194. 00000222  4EBA 2A56                jsr        [PC + 0x2A56 /* 00002C7A */]
  195. 00000226  1B7C 0001 CE68           move.b     [A5 - 0x3198], 0x1
  196. label0000022C:
  197. 0000022C  2E2E FFF8                move.l     D7, [A6 - 0x8]
  198. 00000230  4E5E                     unlink     A6
  199. 00000232  4E75                     rts
  200. fn00000234:
  201. 00000234  4E56 FEF0                link       A6, -0x0110
  202. 00000238  48E7 0300                movem.l    -[A7], D6,D7
  203. 0000023C  2B78 09EE D598           move.l     [A5 - 0x2A68], [0x000009EE /* GrayRgn */]
  204. 00000242  42A7                     clr.l      -[A7]
  205. 00000244  A8D8                     syscall    NewRgn
  206. 00000246  2B5F D59C                move.l     [A5 - 0x2A64], [A7]+
  207. 0000024A  2F2D D59C                move.l     -[A7], [A5 - 0x2A64]
  208. 0000024E  486D FD74                pea.l      [A5 - 0x28C]
  209. 00000252  A8DF                     syscall    RectRgn
  210. 00000254  2F2D D59C                move.l     -[A7], [A5 - 0x2A64]
  211. 00000258  2F38 09EE                move.l     -[A7], [0x000009EE /* GrayRgn */]
  212. 0000025C  2F2D D59C                move.l     -[A7], [A5 - 0x2A64]
  213. 00000260  A8E6                     syscall    DiffRgn
  214. 00000262  42A7                     clr.l      -[A7]
  215. 00000264  A8D8                     syscall    NewRgn
  216. 00000266  2B5F D5A0                move.l     [A5 - 0x2A60], [A7]+
  217. 0000026A  2F2D D5A0                move.l     -[A7], [A5 - 0x2A60]
  218. 0000026E  486D FD74                pea.l      [A5 - 0x28C]
  219. 00000272  A8DF                     syscall    RectRgn
  220. 00000274  2F2D D5A0                move.l     -[A7], [A5 - 0x2A60]
  221. 00000278  2F38 09EE                move.l     -[A7], [0x000009EE /* GrayRgn */]
  222. 0000027C  2F2D D5A0                move.l     -[A7], [A5 - 0x2A60]
  223. 00000280  A8E5                     syscall    UnionRgn
  224. 00000282  3B78 0BAA D5A4           move.w     [A5 - 0x2A5C], [0x00000BAA /* MBarHeight */]
  225. 00000288  4267                     clr.w      -[A7]
  226. 0000028A  486D D5B2                pea.l      [A5 - 0x2A4E]
  227. 0000028E  486D D5D2                pea.l      [A5 - 0x2A2E]
  228. 00000292  4EBA 38E2                jsr        [PC + 0x38E2 /* 00003B76 */]
  229. 00000296  3C1F                     move.w     D6, [A7]+
  230. 00000298  486D D5D4                pea.l      [A5 - 0x2A2C]
  231. 0000029C  486D D614                pea.l      [A5 - 0x29EC]
  232. 000002A0  486E FFFC                pea.l      [A6 - 0x4]
  233. 000002A4  A9F5                     syscall    GetAppParms
  234. 000002A6  486E FFFA                pea.l      [A6 - 0x6]
  235. 000002AA  486E FFF8                pea.l      [A6 - 0x8]
  236. 000002AE  4EBA 390E                jsr        [PC + 0x390E /* 00003BBE */]
  237. 000002B2  4A6E FFFA                tst.w      [A6 - 0x6]
  238. 000002B6  6614                     bne        +0x16 /* 000002CC */
  239. 000002B8  0C6E 0001 FFF8           cmpi.w     [A6 - 0x8], 0x1
  240. 000002BE  660C                     bne        +0xE /* 000002CC */
  241. 000002C0  3F3C 0001                move.w     -[A7], 0x1
  242. 000002C4  486E FEF0                pea.l      [A6 - 0x110]
  243. 000002C8  4EBA 3918                jsr        [PC + 0x3918 /* 00003BE2 */]
  244. label000002CC:
  245. 000002CC  7E01                     moveq.l    D7, 0x01
  246. 000002CE  6008                     bra        +0xA /* 000002D8 */
  247. label000002D0:
  248. 000002D0  3F07                     move.w     -[A7], D7
  249. 000002D2  4EBA 3954                jsr        [PC + 0x3954 /* 00003C28 */]
  250. 000002D6  5247                     addq.w     D7, 1
  251. label000002D8:
  252. 000002D8  BE6E FFF8                cmp.w      D7, [A6 - 0x8]
  253. 000002DC  6FF2                     ble        -0xC /* 000002D0 */
  254. 000002DE  42A7                     clr.l      -[A7]
  255. 000002E0  3F3C 0004                move.w     -[A7], 0x4
  256. 000002E4  A9B9                     syscall    GetCursor
  257. 000002E6  2B5F D63C                move.l     [A5 - 0x29C4], [A7]+
  258. 000002EA  4EBA 0020                jsr        [PC + 0x20 /* 0000030C */]
  259. 000002EE  3C00                     move.w     D6, D0
  260. 000002F0  4A46                     tst.w      D6
  261. 000002F2  660A                     bne        +0xC /* 000002FE */
  262. 000002F4  4EBA 019A                jsr        [PC + 0x19A /* 00000490 */]
  263. 000002F8  3C00                     move.w     D6, D0
  264. 000002FA  4A46                     tst.w      D6
  265. 000002FC  6706                     beq        +0x8 /* 00000304 */
  266. label000002FE:
  267. 000002FE  1B7C 0001 CE68           move.b     [A5 - 0x3198], 0x1
  268. label00000304:
  269. 00000304  4CDF 00C0                movem.l    D6,D7, [A7]+
  270. 00000308  4E5E                     unlink     A6
  271. 0000030A  4E75                     rts
  272. fn0000030C:
  273. 0000030C  48E7 0018                movem.l    -[A7], A3,A4
  274. 00000310  4A2D CE5F                tst.b      [A5 - 0x31A1]
  275. 00000314  6700 0112                beq        +0x114 /* 00000428 */
  276. 00000318  1B7C 0001 D69F           move.b     [A5 - 0x2961], 0x1
  277. 0000031E  42A7                     clr.l      -[A7]
  278. 00000320  AA2A                     syscall    GetMainDevice
  279. 00000322  285F                     movea.l    A4, [A7]+
  280. 00000324  42A7                     clr.l      -[A7]
  281. 00000326  AA29                     syscall    GetDeviceList
  282. 00000328  265F                     movea.l    A3, [A7]+
  283. 0000032A  B9CB                     cmpa.l     A4, A3
  284. 0000032C  6608                     bne        +0xA /* 00000336 */
  285. 0000032E  42A7                     clr.l      -[A7]
  286. 00000330  2F0B                     move.l     -[A7], A3
  287. 00000332  AA2B                     syscall    GetNextDevice
  288. 00000334  265F                     movea.l    A3, [A7]+
  289. label00000336:
  290. 00000336  4A2D D679                tst.b      [A5 - 0x2987]
  291. 0000033A  6704                     beq        +0x6 /* 00000340 */
  292. 0000033C  200B                     move.l     D0, A3
  293. 0000033E  660C                     bne        +0xE /* 0000034C */
  294. label00000340:
  295. 00000340  1B7C 0001 D69E           move.b     [A5 - 0x2962], 0x1
  296. 00000346  2B4C D68E                move.l     [A5 - 0x2972], A4
  297. 0000034A  6008                     bra        +0xA /* 00000354 */
  298. label0000034C:
  299. 0000034C  422D D69E                clr.b      [A5 - 0x2962]
  300. 00000350  2B4B D68E                move.l     [A5 - 0x2972], A3
  301. label00000354:
  302. 00000354  206D D68E                movea.l    A0, [A5 - 0x2972]
  303. 00000358  2050                     movea.l    A0, [A0]
  304. 0000035A  2B68 0016 D692           move.l     [A5 - 0x296E], [A0 + 0x16]
  305. 00000360  206D D692                movea.l    A0, [A5 - 0x296E]
  306. 00000364  2050                     movea.l    A0, [A0]
  307. 00000366  2B68 002A D696           move.l     [A5 - 0x296A], [A0 + 0x2A]
  308. 0000036C  206D D696                movea.l    A0, [A5 - 0x296A]
  309. 00000370  2050                     movea.l    A0, [A0]
  310. 00000372  2B50 D69A                move.l     [A5 - 0x2966], [A0]
  311. 00000376  206D D692                movea.l    A0, [A5 - 0x296E]
  312. 0000037A  2050                     movea.l    A0, [A0]
  313. 0000037C  4A68 001E                tst.w      [A0 + 0x1E]
  314. 00000380  6710                     beq        +0x12 /* 00000392 */
  315. 00000382  206D D692                movea.l    A0, [A5 - 0x296E]
  316. 00000386  2050                     movea.l    A0, [A0]
  317. 00000388  0C68 0010 001E           cmpi.w     [A0 + 0x1E], 0x10
  318. 0000038E  6600 00DC                bne        +0xDE /* 0000046C */
  319. label00000392:
  320. 00000392  206D D692                movea.l    A0, [A5 - 0x296E]
  321. 00000396  2050                     movea.l    A0, [A0]
  322. 00000398  226D D692                movea.l    A1, [A5 - 0x296E]
  323. 0000039C  2251                     movea.l    A1, [A1]
  324. 0000039E  3028 0022                move.w     D0, [A0 + 0x22]
  325. 000003A2  C1E9 0024                muls.w     D0, [A1 + 0x24]
  326. 000003A6  3B40 D67C                move.w     [A5 - 0x2984], D0
  327. 000003AA  0C40 000F                cmpi.w     D0, 0xF
  328. 000003AE  6700 00BC                beq        +0xBE /* 0000046C */
  329. 000003B2  0C6D 0018 D67C           cmpi.w     [A5 - 0x2984], 0x18
  330. 000003B8  6700 00B2                beq        +0xB4 /* 0000046C */
  331. 000003BC  206D D692                movea.l    A0, [A5 - 0x296E]
  332. 000003C0  2050                     movea.l    A0, [A0]
  333. 000003C2  2B68 0006 D682           move.l     [A5 - 0x297E], [A0 + 0x6]
  334. 000003C8  2B68 000A D686           move.l     [A5 - 0x297A], [A0 + 0xA]
  335. 000003CE  302D D67C                move.w     D0, [A5 - 0x2984]
  336. 000003D2  0C40 0008                cmpi.w     D0, 0x8
  337. 000003D6  6244                     bhi        +0x46 /* 0000041C */
  338. 000003D8  43FA 00A4                lea.l      A1, [PC + 0xA4 /* 0000047E, value 0xFF9EFF66 */]
  339. 000003DC  D040                     add.w      D0, D0
  340. 000003DE  D2F1 0000                add.w      A1, [A1 + D0.w]
  341. 000003E2  4ED1                     jmp        [A1]
  342. 000003E4  3B7C FFE0 D67E           move.w     [A5 - 0x2982], 0xFFE0
  343. 000003EA  3B7C 001F D680           move.w     [A5 - 0x2980], 0x1F
  344. 000003F0  605E                     bra        +0x60 /* 00000450 */
  345. 000003F2  3B7C FFF0 D67E           move.w     [A5 - 0x2982], 0xFFF0
  346. 000003F8  3B7C 000F D680           move.w     [A5 - 0x2980], 0xF
  347. 000003FE  6050                     bra        +0x52 /* 00000450 */
  348. 00000400  3B7C FFF8 D67E           move.w     [A5 - 0x2982], 0xFFF8
  349. 00000406  3B7C 0007 D680           move.w     [A5 - 0x2980], 0x7
  350. 0000040C  6042                     bra        +0x44 /* 00000450 */
  351. 0000040E  3B7C FFFC D67E           move.w     [A5 - 0x2982], 0xFFFC
  352. 00000414  3B7C 0003 D680           move.w     [A5 - 0x2980], 0x3
  353. 0000041A  6034                     bra        +0x36 /* 00000450 */
  354. label0000041C:
  355. 0000041C  3B7C FFFF D67E           move.w     [A5 - 0x2982], 0xFFFF
  356. 00000422  426D D680                clr.w      [A5 - 0x2980]
  357. 00000426  6028                     bra        +0x2A /* 00000450 */
  358. label00000428:
  359. 00000428  422D D69F                clr.b      [A5 - 0x2961]
  360. 0000042C  1B7C 0001 D69E           move.b     [A5 - 0x2962], 0x1
  361. 00000432  3B7C 0001 D67C           move.w     [A5 - 0x2984], 0x1
  362. 00000438  2B6D FD74 D682           move.l     [A5 - 0x297E], [A5 - 0x28C]
  363. 0000043E  2B6D FD78 D686           move.l     [A5 - 0x297A], [A5 - 0x288]
  364. 00000444  3B7C FFF0 D67E           move.w     [A5 - 0x2982], 0xFFF0
  365. 0000044A  3B7C 000F D680           move.w     [A5 - 0x2980], 0xF
  366. label00000450:
  367. 00000450  302D D688                move.w     D0, [A5 - 0x2978]
  368. 00000454  906D D684                sub.w      D0, [A5 - 0x297C]
  369. 00000458  3B40 D68A                move.w     [A5 - 0x2976], D0
  370. 0000045C  322D D686                move.w     D1, [A5 - 0x297A]
  371. 00000460  926D D682                sub.w      D1, [A5 - 0x297E]
  372. 00000464  3B41 D68C                move.w     [A5 - 0x2974], D1
  373. 00000468  7000                     moveq.l    D0, 0x00
  374. 0000046A  600C                     bra        +0xE /* 00000478 */
  375. label0000046C:
  376. 0000046C  3F3C 03EB                move.w     -[A7], 0x3EB
  377. 00000470  4EBA 2808                jsr        [PC + 0x2808 /* 00002C7A */]
  378. 00000474  70FF                     moveq.l    D0, 0xFFFFFFFF
  379. 00000476  548F                     addq.l     A7, 2
  380. label00000478:
  381. 00000478  4CDF 1800                movem.l    A3,A4, [A7]+
  382. 0000047C  4E75                     rts
  383. 0000047E  FF9E                     .invalid   <<F/6/7>>
  384. 00000480  FF66                     .extension 0xF66 <<F/4-5/7>> // unimplemented
  385. 00000482  FF74                     .extension 0xF74 <<F/4-5/7>> // unimplemented
  386. 00000484  FF9E                     .invalid   <<F/6/7>>
  387. 00000486  FF82                     .invalid   <<F/6/7>>
  388. 00000488  FF9E                     .invalid   <<F/6/7>>
  389. 0000048A  FF9E                     .invalid   <<F/6/7>>
  390. 0000048C  FF9E                     .invalid   <<F/6/7>>
  391. 0000048E  FF90                     .invalid   <<F/6/7>>
  392. fn00000490:
  393. 00000490  2F07                     move.l     -[A7], D7
  394. 00000492  42A7                     clr.l      -[A7]
  395. 00000494  3F3C 03E8                move.w     -[A7], 0x3E8
  396. 00000498  A9BF                     syscall    GetRMenu
  397. 0000049A  2B5F D62C                move.l     [A5 - 0x29D4], [A7]+
  398. 0000049E  4267                     clr.w      -[A7]
  399. 000004A0  A9AF                     syscall    ResError
  400. 000004A2  3E1F                     move.w     D7, [A7]+
  401. 000004A4  4A47                     tst.w      D7
  402. 000004A6  6674                     bne        +0x76 /* 0000051C */
  403. 000004A8  2F2D D62C                move.l     -[A7], [A5 - 0x29D4]
  404. 000004AC  2F3C 4452 5652           move.l     -[A7], 0x44525652 /* 'DRVR' */
  405. 000004B2  A94D                     syscall    AppendResMenu/AddResMenu
  406. 000004B4  2F2D D62C                move.l     -[A7], [A5 - 0x29D4]
  407. 000004B8  4267                     clr.w      -[A7]
  408. 000004BA  A935                     syscall    InsertMenu
  409. 000004BC  42A7                     clr.l      -[A7]
  410. 000004BE  3F3C 03E9                move.w     -[A7], 0x3E9
  411. 000004C2  A9BF                     syscall    GetRMenu
  412. 000004C4  2B5F D630                move.l     [A5 - 0x29D0], [A7]+
  413. 000004C8  4267                     clr.w      -[A7]
  414. 000004CA  A9AF                     syscall    ResError
  415. 000004CC  3E1F                     move.w     D7, [A7]+
  416. 000004CE  4A47                     tst.w      D7
  417. 000004D0  664A                     bne        +0x4C /* 0000051C */
  418. 000004D2  2F2D D630                move.l     -[A7], [A5 - 0x29D0]
  419. 000004D6  4267                     clr.w      -[A7]
  420. 000004D8  A935                     syscall    InsertMenu
  421. 000004DA  42A7                     clr.l      -[A7]
  422. 000004DC  3F3C 03EA                move.w     -[A7], 0x3EA
  423. 000004E0  A9BF                     syscall    GetRMenu
  424. 000004E2  2B5F D634                move.l     [A5 - 0x29CC], [A7]+
  425. 000004E6  4267                     clr.w      -[A7]
  426. 000004E8  A9AF                     syscall    ResError
  427. 000004EA  3E1F                     move.w     D7, [A7]+
  428. 000004EC  4A47                     tst.w      D7
  429. 000004EE  662C                     bne        +0x2E /* 0000051C */
  430. 000004F0  2F2D D634                move.l     -[A7], [A5 - 0x29CC]
  431. 000004F4  4267                     clr.w      -[A7]
  432. 000004F6  A935                     syscall    InsertMenu
  433. 000004F8  42A7                     clr.l      -[A7]
  434. 000004FA  3F3C 03EB                move.w     -[A7], 0x3EB
  435. 000004FE  A9BF                     syscall    GetRMenu
  436. 00000500  2B5F D638                move.l     [A5 - 0x29C8], [A7]+
  437. 00000504  4267                     clr.w      -[A7]
  438. 00000506  A9AF                     syscall    ResError
  439. 00000508  3E1F                     move.w     D7, [A7]+
  440. 0000050A  4A47                     tst.w      D7
  441. 0000050C  660E                     bne        +0x10 /* 0000051C */
  442. 0000050E  2F2D D638                move.l     -[A7], [A5 - 0x29C8]
  443. 00000512  4267                     clr.w      -[A7]
  444. 00000514  A935                     syscall    InsertMenu
  445. 00000516  A937                     syscall    DrawMenuBar
  446. 00000518  7000                     moveq.l    D0, 0x00
  447. 0000051A  600C                     bra        +0xE /* 00000528 */
  448. label0000051C:
  449. 0000051C  3F3C 03EA                move.w     -[A7], 0x3EA
  450. 00000520  4EBA 2758                jsr        [PC + 0x2758 /* 00002C7A */]
  451. 00000524  70FF                     moveq.l    D0, 0xFFFFFFFF
  452. 00000526  548F                     addq.l     A7, 2
  453. label00000528:
  454. 00000528  2E1F                     move.l     D7, [A7]+
  455. 0000052A  4E75                     rts
  456. fn0000052C:
  457. 0000052C  48E7 0708                movem.l    -[A7], D5,D6,D7,A4
  458. 00000530  42A7                     clr.l      -[A7]
  459. 00000532  A975                     syscall    TickCount
  460. 00000534  2E1F                     move.l     D7, [A7]+
  461. 00000536  0247 03FF                andi.w     D7, 0x3FF
  462. 0000053A  7C00                     moveq.l    D6, 0x00
  463. 0000053C  600C                     bra        +0xE /* 0000054A */
  464. label0000053E:
  465. 0000053E  3F3C 00FF                move.w     -[A7], 0xFF
  466. 00000542  4EBA 2354                jsr        [PC + 0x2354 /* 00002898 */]
  467. 00000546  548F                     addq.l     A7, 2
  468. 00000548  5246                     addq.w     D6, 1
  469. label0000054A:
  470. 0000054A  BE46                     cmp.w      D7, D6
  471. 0000054C  6EF0                     bgt        -0xE /* 0000053E */
  472. 0000054E  4EBA 013A                jsr        [PC + 0x13A /* 0000068A */]
  473. 00000552  3B7C FFFF DF5A           move.w     [A5 - 0x20A6], 0xFFFF
  474. 00000558  3B7C 1DCF DFDC           move.w     [A5 - 0x2024], 0x1DCF
  475. 0000055E  3B7C 1B0F E008           move.w     [A5 - 0x1FF8], 0x1B0F
  476. 00000564  3B7C 5A83 E026           move.w     [A5 - 0x1FDA], 0x5A83
  477. 0000056A  3B7C DDFF EB68           move.w     [A5 - 0x1498], 0xDDFF
  478. 00000570  4EBA 0686                jsr        [PC + 0x686 /* 00000BF8 */]
  479. 00000574  3A00                     move.w     D5, D0
  480. 00000576  4A45                     tst.w      D5
  481. 00000578  6600 0104                bne        +0x106 /* 0000067E */
  482. 0000057C  4EBA 06C2                jsr        [PC + 0x6C2 /* 00000C40 */]
  483. 00000580  3A00                     move.w     D5, D0
  484. 00000582  4A45                     tst.w      D5
  485. 00000584  6600 00F8                bne        +0xFA /* 0000067E */
  486. 00000588  7002                     moveq.l    D0, 0x02
  487. 0000058A  D0AD FF80                add.l      D0, [A5 - 0x80]
  488. 0000058E  2B40 D90A                move.l     [A5 - 0x26F6], D0
  489. 00000592  4EBA 0AB6                jsr        [PC + 0xAB6 /* 0000104A */]
  490. 00000596  3A00                     move.w     D5, D0
  491. 00000598  4A45                     tst.w      D5
  492. 0000059A  6600 00E2                bne        +0xE4 /* 0000067E */
  493. 0000059E  7002                     moveq.l    D0, 0x02
  494. 000005A0  D0AD D6A6                add.l      D0, [A5 - 0x295A]
  495. 000005A4  2B40 D90E                move.l     [A5 - 0x26F2], D0
  496. 000005A8  4EBA 0CCA                jsr        [PC + 0xCCA /* 00001274 */]
  497. 000005AC  3A00                     move.w     D5, D0
  498. 000005AE  4A45                     tst.w      D5
  499. 000005B0  6600 00CC                bne        +0xCE /* 0000067E */
  500. 000005B4  4EAD 0162                jsr        [A5 + 0x162 /* export_40 */]
  501. 000005B8  3B40 DF5A                move.w     [A5 - 0x20A6], D0
  502. 000005BC  4A2D D69F                tst.b      [A5 - 0x2961]
  503. 000005C0  671A                     beq        +0x1C /* 000005DC */
  504. 000005C2  42A7                     clr.l      -[A7]
  505. 000005C4  3F3C 03E8                move.w     -[A7], 0x3E8
  506. 000005C8  AA1B                     syscall    GetCCursor
  507. 000005CA  2B5F D648                move.l     [A5 - 0x29B8], [A7]+
  508. 000005CE  42A7                     clr.l      -[A7]
  509. 000005D0  3F3C 03E9                move.w     -[A7], 0x3E9
  510. 000005D4  AA1B                     syscall    GetCCursor
  511. 000005D6  2B5F D64C                move.l     [A5 - 0x29B4], [A7]+
  512. 000005DA  6018                     bra        +0x1A /* 000005F4 */
  513. label000005DC:
  514. 000005DC  42A7                     clr.l      -[A7]
  515. 000005DE  3F3C 03E8                move.w     -[A7], 0x3E8
  516. 000005E2  A9B9                     syscall    GetCursor
  517. 000005E4  2B5F D640                move.l     [A5 - 0x29C0], [A7]+
  518. 000005E8  42A7                     clr.l      -[A7]
  519. 000005EA  3F3C 03E9                move.w     -[A7], 0x3E9
  520. 000005EE  A9B9                     syscall    GetCursor
  521. 000005F0  2B5F D644                move.l     [A5 - 0x29BC], [A7]+
  522. label000005F4:
  523. 000005F4  4227                     clr.b      -[A7]
  524. 000005F6  4EBA 19B0                jsr        [PC + 0x19B0 /* 00001FA8 */]
  525. 000005FA  1EBC 0001                move.b     [A7], 0x1
  526. 000005FE  4EBA 19C4                jsr        [PC + 0x19C4 /* 00001FC4 */]
  527. 00000602  1EBC 0001                move.b     [A7], 0x1
  528. 00000606  4EBA 1A0A                jsr        [PC + 0x1A0A /* 00002012 */]
  529. 0000060A  0C6D 0006 D590           cmpi.w     [A5 - 0x2A70], 0x6
  530. 00000610  548F                     addq.l     A7, 2
  531. 00000612  6F18                     ble        +0x1A /* 0000062C */
  532. 00000614  0C6D 000A D590           cmpi.w     [A5 - 0x2A70], 0xA /* '\n' */
  533. 0000061A  6710                     beq        +0x12 /* 0000062C */
  534. 0000061C  0C6D 0011 D590           cmpi.w     [A5 - 0x2A70], 0x11
  535. 00000622  6708                     beq        +0xA /* 0000062C */
  536. 00000624  0C6D 0013 D590           cmpi.w     [A5 - 0x2A70], 0x13
  537. 0000062A  660A                     bne        +0xC /* 00000636 */
  538. label0000062C:
  539. 0000062C  1F3C 0001                move.b     -[A7], 0x1
  540. 00000630  4EBA 1A2E                jsr        [PC + 0x1A2E /* 00002060 */]
  541. 00000634  548F                     addq.l     A7, 2
  542. label00000636:
  543. 00000636  4A2D D69E                tst.b      [A5 - 0x2962]
  544. 0000063A  6714                     beq        +0x16 /* 00000650 */
  545. 0000063C  302D D68C                move.w     D0, [A5 - 0x2974]
  546. 00000640  9078 0BAA                sub.w      D0, [0x00000BAA /* MBarHeight */]
  547. 00000644  B06D D6AE                cmp.w      D0, [A5 - 0x2952]
  548. 00000648  6C06                     bge        +0x8 /* 00000650 */
  549. 0000064A  1B7C 0001 CE65           move.b     [A5 - 0x319B], 0x1
  550. label00000650:
  551. 00000650  42A7                     clr.l      -[A7]
  552. 00000652  2F3C 494E 464F           move.l     -[A7], 0x494E464F /* 'INFO' */
  553. 00000658  4267                     clr.w      -[A7]
  554. 0000065A  A9A0                     syscall    GetResource
  555. 0000065C  285F                     movea.l    A4, [A7]+
  556. 0000065E  2054                     movea.l    A0, [A4]
  557. 00000660  3B50 D624                move.w     [A5 - 0x29DC], [A0]
  558. 00000664  2054                     movea.l    A0, [A4]
  559. 00000666  3B68 0002 D626           move.w     [A5 - 0x29DA], [A0 + 0x2]
  560. 0000066C  2054                     movea.l    A0, [A4]
  561. 0000066E  3B68 0004 D628           move.w     [A5 - 0x29D8], [A0 + 0x4]
  562. 00000674  2054                     movea.l    A0, [A4]
  563. 00000676  3B68 0006 D62A           move.w     [A5 - 0x29D6], [A0 + 0x6]
  564. 0000067C  6006                     bra        +0x8 /* 00000684 */
  565. label0000067E:
  566. 0000067E  1B7C 0001 CE68           move.b     [A5 - 0x3198], 0x1
  567. label00000684:
  568. 00000684  4CDF 10E0                movem.l    D5,D6,D7,A4, [A7]+
  569. 00000688  4E75                     rts
  570. fn0000068A:
  571. 0000068A  4E56 FFFE                link       A6, -0x0002
  572. 0000068E  48E7 1F18                movem.l    -[A7], D3,D4,D5,D6,D7,A3,A4
  573. 00000692  0C6D 0008 D67C           cmpi.w     [A5 - 0x2984], 0x8
  574. 00000698  6C04                     bge        +0x6 /* 0000069E */
  575. 0000069A  422D D69F                clr.b      [A5 - 0x2961]
  576. label0000069E:
  577. 0000069E  4A2D D69F                tst.b      [A5 - 0x2961]
  578. 000006A2  673A                     beq        +0x3C /* 000006DE */
  579. 000006A4  0C6D 0280 D68A           cmpi.w     [A5 - 0x2976], 0x280
  580. 000006AA  6D10                     blt        +0x12 /* 000006BC */
  581. 000006AC  0C6D 01E0 D68C           cmpi.w     [A5 - 0x2974], 0x1E0
  582. 000006B2  6D08                     blt        +0xA /* 000006BC */
  583. 000006B4  3B7C 0002 D6AA           move.w     [A5 - 0x2956], 0x2
  584. 000006BA  6026                     bra        +0x28 /* 000006E2 */
  585. label000006BC:
  586. 000006BC  0C6D 0200 D68A           cmpi.w     [A5 - 0x2976], 0x200
  587. 000006C2  6D10                     blt        +0x12 /* 000006D4 */
  588. 000006C4  0C6D 0180 D68C           cmpi.w     [A5 - 0x2974], 0x180
  589. 000006CA  6D08                     blt        +0xA /* 000006D4 */
  590. 000006CC  3B7C 0001 D6AA           move.w     [A5 - 0x2956], 0x1
  591. 000006D2  600E                     bra        +0x10 /* 000006E2 */
  592. label000006D4:
  593. 000006D4  422D D69F                clr.b      [A5 - 0x2961]
  594. 000006D8  426D D6AA                clr.w      [A5 - 0x2956]
  595. 000006DC  6004                     bra        +0x6 /* 000006E2 */
  596. label000006DE:
  597. 000006DE  426D D6AA                clr.w      [A5 - 0x2956]
  598. label000006E2:
  599. 000006E2  4A2D D67A                tst.b      [A5 - 0x2986]
  600. 000006E6  6710                     beq        +0x12 /* 000006F8 */
  601. 000006E8  4A6D D6AA                tst.w      [A5 - 0x2956]
  602. 000006EC  6F0A                     ble        +0xC /* 000006F8 */
  603. 000006EE  7003                     moveq.l    D0, 0x03
  604. 000006F0  906D D6AA                sub.w      D0, [A5 - 0x2956]
  605. 000006F4  3B40 D6AA                move.w     [A5 - 0x2956], D0
  606. label000006F8:
  607. 000006F8  302D D6AA                move.w     D0, [A5 - 0x2956]
  608. 000006FC  6716                     beq        +0x18 /* 00000714 */
  609. 000006FE  6B18                     bmi        +0x1A /* 00000718 */
  610. 00000700  5540                     subq.w     D0, 2
  611. 00000702  6704                     beq        +0x6 /* 00000708 */
  612. 00000704  6A12                     bpl        +0x14 /* 00000718 */
  613. 00000706  6006                     bra        +0x8 /* 0000070E */
  614. label00000708:
  615. 00000708  49ED CEA4                lea.l      A4, [A5 - 0x315C]
  616. 0000070C  600A                     bra        +0xC /* 00000718 */
  617. label0000070E:
  618. 0000070E  49ED CF0C                lea.l      A4, [A5 - 0x30F4]
  619. 00000712  6004                     bra        +0x6 /* 00000718 */
  620. label00000714:
  621. 00000714  49ED CF74                lea.l      A4, [A5 - 0x308C]
  622. label00000718:
  623. 00000718  3B54 D6AC                move.w     [A5 - 0x2954], [A4]
  624. 0000071C  3B6C 0002 D6AE           move.w     [A5 - 0x2952], [A4 + 0x2]
  625. 00000722  486D D6B0                pea.l      [A5 - 0x2950]
  626. 00000726  42A7                     clr.l      -[A7]
  627. 00000728  3F2D D6AC                move.w     -[A7], [A5 - 0x2954]
  628. 0000072C  3F2D D6AE                move.w     -[A7], [A5 - 0x2952]
  629. 00000730  A8A7                     syscall    SetRect
  630. 00000732  486D D6D2                pea.l      [A5 - 0x292E]
  631. 00000736  42A7                     clr.l      -[A7]
  632. 00000738  3F2D D6AC                move.w     -[A7], [A5 - 0x2954]
  633. 0000073C  3F2C 0004                move.w     -[A7], [A4 + 0x4]
  634. 00000740  A8A7                     syscall    SetRect
  635. 00000742  486D D6DA                pea.l      [A5 - 0x2926]
  636. 00000746  4267                     clr.w      -[A7]
  637. 00000748  3F2C 0004                move.w     -[A7], [A4 + 0x4]
  638. 0000074C  3F2D D6AC                move.w     -[A7], [A5 - 0x2954]
  639. 00000750  3F2C 0006                move.w     -[A7], [A4 + 0x6]
  640. 00000754  A8A7                     syscall    SetRect
  641. 00000756  486D D6E2                pea.l      [A5 - 0x291E]
  642. 0000075A  4267                     clr.w      -[A7]
  643. 0000075C  3F2C 0006                move.w     -[A7], [A4 + 0x6]
  644. 00000760  3F2D D6AC                move.w     -[A7], [A5 - 0x2954]
  645. 00000764  3F2D D6AE                move.w     -[A7], [A5 - 0x2952]
  646. 00000768  A8A7                     syscall    SetRect
  647. 0000076A  3E2C 0008                move.w     D7, [A4 + 0x8]
  648. 0000076E  3C2C 000A                move.w     D6, [A4 + 0xA]
  649. 00000772  DC6C 0006                add.w      D6, [A4 + 0x6]
  650. 00000776  3A2C 000C                move.w     D5, [A4 + 0xC]
  651. 0000077A  382C 000E                move.w     D4, [A4 + 0xE]
  652. 0000077E  7600                     moveq.l    D3, 0x00
  653. 00000780  3006                     move.w     D0, D6
  654. 00000782  D044                     add.w      D0, D4
  655. 00000784  3D40 FFFE                move.w     [A6 - 0x2], D0
  656. 00000788  2203                     move.l     D1, D3
  657. 0000078A  48C1                     ext.l      D1
  658. 0000078C  E789                     lsl        D1, 3
  659. 0000078E  47ED D6EA                lea.l      A3, [A5 - 0x2916]
  660. 00000792  D28B                     add.l      D1, A3
  661. 00000794  2641                     movea.l    A3, D1
  662. 00000796  601A                     bra        +0x1C /* 000007B2 */
  663. label00000798:
  664. 00000798  2F0B                     move.l     -[A7], A3
  665. 0000079A  3F07                     move.w     -[A7], D7
  666. 0000079C  3F06                     move.w     -[A7], D6
  667. 0000079E  3007                     move.w     D0, D7
  668. 000007A0  D045                     add.w      D0, D5
  669. 000007A2  3F00                     move.w     -[A7], D0
  670. 000007A4  3F2E FFFE                move.w     -[A7], [A6 - 0x2]
  671. 000007A8  A8A7                     syscall    SetRect
  672. 000007AA  DE6C 000C                add.w      D7, [A4 + 0xC]
  673. 000007AE  5243                     addq.w     D3, 1
  674. 000007B0  508B                     addq.l     A3, 8
  675. label000007B2:
  676. 000007B2  0C43 000C                cmpi.w     D3, 0xC
  677. 000007B6  6DE0                     blt        -0x1E /* 00000798 */
  678. 000007B8  3E2C 0010                move.w     D7, [A4 + 0x10]
  679. 000007BC  DE6C 0008                add.w      D7, [A4 + 0x8]
  680. 000007C0  3C2C 000A                move.w     D6, [A4 + 0xA]
  681. 000007C4  DC6C 0006                add.w      D6, [A4 + 0x6]
  682. 000007C8  DC6C 0012                add.w      D6, [A4 + 0x12]
  683. 000007CC  3A2C 0014                move.w     D5, [A4 + 0x14]
  684. 000007D0  382C 0016                move.w     D4, [A4 + 0x16]
  685. 000007D4  7600                     moveq.l    D3, 0x00
  686. 000007D6  3006                     move.w     D0, D6
  687. 000007D8  D044                     add.w      D0, D4
  688. 000007DA  3D40 FFFE                move.w     [A6 - 0x2], D0
  689. 000007DE  2203                     move.l     D1, D3
  690. 000007E0  48C1                     ext.l      D1
  691. 000007E2  E789                     lsl        D1, 3
  692. 000007E4  47ED D74A                lea.l      A3, [A5 - 0x28B6]
  693. 000007E8  D28B                     add.l      D1, A3
  694. 000007EA  2641                     movea.l    A3, D1
  695. 000007EC  601A                     bra        +0x1C /* 00000808 */
  696. label000007EE:
  697. 000007EE  2F0B                     move.l     -[A7], A3
  698. 000007F0  3F07                     move.w     -[A7], D7
  699. 000007F2  3F06                     move.w     -[A7], D6
  700. 000007F4  3007                     move.w     D0, D7
  701. 000007F6  D045                     add.w      D0, D5
  702. 000007F8  3F00                     move.w     -[A7], D0
  703. 000007FA  3F2E FFFE                move.w     -[A7], [A6 - 0x2]
  704. 000007FE  A8A7                     syscall    SetRect
  705. 00000800  DE6C 000C                add.w      D7, [A4 + 0xC]
  706. 00000804  5243                     addq.w     D3, 1
  707. 00000806  508B                     addq.l     A3, 8
  708. label00000808:
  709. 00000808  0C43 000A                cmpi.w     D3, 0xA /* '\n' */
  710. 0000080C  6DE0                     blt        -0x1E /* 000007EE */
  711. 0000080E  486D D79A                pea.l      [A5 - 0x2866]
  712. 00000812  700C                     moveq.l    D0, 0x0C
  713. 00000814  C1EC 000C                muls.w     D0, [A4 + 0xC]
  714. 00000818  D06C 0008                add.w      D0, [A4 + 0x8]
  715. 0000081C  3F00                     move.w     -[A7], D0
  716. 0000081E  3F2C 0006                move.w     -[A7], [A4 + 0x6]
  717. 00000822  3F2D D6AC                move.w     -[A7], [A5 - 0x2954]
  718. 00000826  3F2D D6AE                move.w     -[A7], [A5 - 0x2952]
  719. 0000082A  A8A7                     syscall    SetRect
  720. 0000082C  486D D79A                pea.l      [A5 - 0x2866]
  721. 00000830  2F3C 0001 0001           move.l     -[A7], 0x10001
  722. 00000836  A8A9                     syscall    InsetRect
  723. 00000838  3E2C 0018                move.w     D7, [A4 + 0x18]
  724. 0000083C  3C2C 001A                move.w     D6, [A4 + 0x1A]
  725. 00000840  DC6C 0006                add.w      D6, [A4 + 0x6]
  726. 00000844  3A2C 001C                move.w     D5, [A4 + 0x1C]
  727. 00000848  382C 001E                move.w     D4, [A4 + 0x1E]
  728. 0000084C  486D D7A2                pea.l      [A5 - 0x285E]
  729. 00000850  3F07                     move.w     -[A7], D7
  730. 00000852  3F06                     move.w     -[A7], D6
  731. 00000854  3007                     move.w     D0, D7
  732. 00000856  D045                     add.w      D0, D5
  733. 00000858  3F00                     move.w     -[A7], D0
  734. 0000085A  3006                     move.w     D0, D6
  735. 0000085C  D044                     add.w      D0, D4
  736. 0000085E  3F00                     move.w     -[A7], D0
  737. 00000860  A8A7                     syscall    SetRect
  738. 00000862  486D D7AA                pea.l      [A5 - 0x2856]
  739. 00000866  302D D6AC                move.w     D0, [A5 - 0x2954]
  740. 0000086A  906D D68A                sub.w      D0, [A5 - 0x2976]
  741. 0000086E  48C0                     ext.l      D0
  742. 00000870  81FC 0002                divs.w     D0, 0x2
  743. 00000874  3F00                     move.w     -[A7], D0
  744. 00000876  2F3C 0004 0000           move.l     -[A7], 0x40000
  745. 0000087C  3F3C 0140                move.w     -[A7], 0x140
  746. 00000880  A8A7                     syscall    SetRect
  747. 00000882  486D D7B2                pea.l      [A5 - 0x284E]
  748. 00000886  70FC                     moveq.l    D0, 0xFFFFFFFC
  749. 00000888  D06D D6AC                add.w      D0, [A5 - 0x2954]
  750. 0000088C  3F00                     move.w     -[A7], D0
  751. 0000088E  4267                     clr.w      -[A7]
  752. 00000890  302D D6AC                move.w     D0, [A5 - 0x2954]
  753. 00000894  D06D D68A                add.w      D0, [A5 - 0x2976]
  754. 00000898  48C0                     ext.l      D0
  755. 0000089A  81FC 0002                divs.w     D0, 0x2
  756. 0000089E  3F00                     move.w     -[A7], D0
  757. 000008A0  3F3C 0140                move.w     -[A7], 0x140
  758. 000008A4  A8A7                     syscall    SetRect
  759. 000008A6  426D D7BA                clr.w      [A5 - 0x2846]
  760. 000008AA  2B6D D6D2 D7BC           move.l     [A5 - 0x2844], [A5 - 0x292E]
  761. 000008B0  2B6D D6D6 D7C0           move.l     [A5 - 0x2840], [A5 - 0x292A]
  762. 000008B6  3E2C 0008                move.w     D7, [A4 + 0x8]
  763. 000008BA  3C2C 000A                move.w     D6, [A4 + 0xA]
  764. 000008BE  3A2C 000C                move.w     D5, [A4 + 0xC]
  765. 000008C2  382C 000E                move.w     D4, [A4 + 0xE]
  766. 000008C6  7600                     moveq.l    D3, 0x00
  767. 000008C8  3006                     move.w     D0, D6
  768. 000008CA  D044                     add.w      D0, D4
  769. 000008CC  3D40 FFFE                move.w     [A6 - 0x2], D0
  770. 000008D0  2203                     move.l     D1, D3
  771. 000008D2  48C1                     ext.l      D1
  772. 000008D4  E789                     lsl        D1, 3
  773. 000008D6  47ED D7CC                lea.l      A3, [A5 - 0x2834]
  774. 000008DA  D28B                     add.l      D1, A3
  775. 000008DC  2641                     movea.l    A3, D1
  776. 000008DE  601A                     bra        +0x1C /* 000008FA */
  777. label000008E0:
  778. 000008E0  2F0B                     move.l     -[A7], A3
  779. 000008E2  3F07                     move.w     -[A7], D7
  780. 000008E4  3F06                     move.w     -[A7], D6
  781. 000008E6  3007                     move.w     D0, D7
  782. 000008E8  D045                     add.w      D0, D5
  783. 000008EA  3F00                     move.w     -[A7], D0
  784. 000008EC  3F2E FFFE                move.w     -[A7], [A6 - 0x2]
  785. 000008F0  A8A7                     syscall    SetRect
  786. 000008F2  DE6C 000C                add.w      D7, [A4 + 0xC]
  787. 000008F6  5243                     addq.w     D3, 1
  788. 000008F8  508B                     addq.l     A3, 8
  789. label000008FA:
  790. 000008FA  0C43 000C                cmpi.w     D3, 0xC
  791. 000008FE  6DE0                     blt        -0x1E /* 000008E0 */
  792. 00000900  3E2C 0018                move.w     D7, [A4 + 0x18]
  793. 00000904  3C2C 001A                move.w     D6, [A4 + 0x1A]
  794. 00000908  3A2C 001C                move.w     D5, [A4 + 0x1C]
  795. 0000090C  382C 001E                move.w     D4, [A4 + 0x1E]
  796. 00000910  486D D82C                pea.l      [A5 - 0x27D4]
  797. 00000914  3F07                     move.w     -[A7], D7
  798. 00000916  3F06                     move.w     -[A7], D6
  799. 00000918  3007                     move.w     D0, D7
  800. 0000091A  D045                     add.w      D0, D5
  801. 0000091C  3F00                     move.w     -[A7], D0
  802. 0000091E  3006                     move.w     D0, D6
  803. 00000920  D044                     add.w      D0, D4
  804. 00000922  3F00                     move.w     -[A7], D0
  805. 00000924  A8A7                     syscall    SetRect
  806. 00000926  3B6C 0020 D834           move.w     [A5 - 0x27CC], [A4 + 0x20]
  807. 0000092C  3B6C 0022 D836           move.w     [A5 - 0x27CA], [A4 + 0x22]
  808. 00000932  3B6C 0024 D838           move.w     [A5 - 0x27C8], [A4 + 0x24]
  809. 00000938  3B6C 0026 D83A           move.w     [A5 - 0x27C6], [A4 + 0x26]
  810. 0000093E  486D D83C                pea.l      [A5 - 0x27C4]
  811. 00000942  3F2C 0028                move.w     -[A7], [A4 + 0x28]
  812. 00000946  3F2C 002A                move.w     -[A7], [A4 + 0x2A]
  813. 0000094A  A880                     syscall    SetPt
  814. 0000094C  486D D840                pea.l      [A5 - 0x27C0]
  815. 00000950  3F2C 002C                move.w     -[A7], [A4 + 0x2C]
  816. 00000954  3F2C 002E                move.w     -[A7], [A4 + 0x2E]
  817. 00000958  A880                     syscall    SetPt
  818. 0000095A  486D D844                pea.l      [A5 - 0x27BC]
  819. 0000095E  3F2C 0030                move.w     -[A7], [A4 + 0x30]
  820. 00000962  3F2C 0032                move.w     -[A7], [A4 + 0x32]
  821. 00000966  A880                     syscall    SetPt
  822. 00000968  486D D848                pea.l      [A5 - 0x27B8]
  823. 0000096C  3F2C 0034                move.w     -[A7], [A4 + 0x34]
  824. 00000970  3F2C 0036                move.w     -[A7], [A4 + 0x36]
  825. 00000974  A880                     syscall    SetPt
  826. 00000976  3A2C 003C                move.w     D5, [A4 + 0x3C]
  827. 0000097A  382C 003E                move.w     D4, [A4 + 0x3E]
  828. 0000097E  3E2C 0038                move.w     D7, [A4 + 0x38]
  829. 00000982  DE6C 0028                add.w      D7, [A4 + 0x28]
  830. 00000986  3C2C 003A                move.w     D6, [A4 + 0x3A]
  831. 0000098A  DC6C 002A                add.w      D6, [A4 + 0x2A]
  832. 0000098E  486D D84C                pea.l      [A5 - 0x27B4]
  833. 00000992  3F07                     move.w     -[A7], D7
  834. 00000994  3F06                     move.w     -[A7], D6
  835. 00000996  3007                     move.w     D0, D7
  836. 00000998  D045                     add.w      D0, D5
  837. 0000099A  3F00                     move.w     -[A7], D0
  838. 0000099C  3006                     move.w     D0, D6
  839. 0000099E  D044                     add.w      D0, D4
  840. 000009A0  3F00                     move.w     -[A7], D0
  841. 000009A2  A8A7                     syscall    SetRect
  842. 000009A4  3E2C 0038                move.w     D7, [A4 + 0x38]
  843. 000009A8  DE6C 002C                add.w      D7, [A4 + 0x2C]
  844. 000009AC  3C2C 003A                move.w     D6, [A4 + 0x3A]
  845. 000009B0  DC6C 002E                add.w      D6, [A4 + 0x2E]
  846. 000009B4  486D D854                pea.l      [A5 - 0x27AC]
  847. 000009B8  3F07                     move.w     -[A7], D7
  848. 000009BA  3F06                     move.w     -[A7], D6
  849. 000009BC  3007                     move.w     D0, D7
  850. 000009BE  D045                     add.w      D0, D5
  851. 000009C0  3F00                     move.w     -[A7], D0
  852. 000009C2  3006                     move.w     D0, D6
  853. 000009C4  D044                     add.w      D0, D4
  854. 000009C6  3F00                     move.w     -[A7], D0
  855. 000009C8  A8A7                     syscall    SetRect
  856. 000009CA  3E2C 0038                move.w     D7, [A4 + 0x38]
  857. 000009CE  DE6C 0030                add.w      D7, [A4 + 0x30]
  858. 000009D2  3C2C 003A                move.w     D6, [A4 + 0x3A]
  859. 000009D6  DC6C 0032                add.w      D6, [A4 + 0x32]
  860. 000009DA  486D D85C                pea.l      [A5 - 0x27A4]
  861. 000009DE  3F07                     move.w     -[A7], D7
  862. 000009E0  3F06                     move.w     -[A7], D6
  863. 000009E2  3007                     move.w     D0, D7
  864. 000009E4  D045                     add.w      D0, D5
  865. 000009E6  3F00                     move.w     -[A7], D0
  866. 000009E8  3006                     move.w     D0, D6
  867. 000009EA  D044                     add.w      D0, D4
  868. 000009EC  3F00                     move.w     -[A7], D0
  869. 000009EE  A8A7                     syscall    SetRect
  870. 000009F0  3E2C 0038                move.w     D7, [A4 + 0x38]
  871. 000009F4  DE6C 0034                add.w      D7, [A4 + 0x34]
  872. 000009F8  3C2C 003A                move.w     D6, [A4 + 0x3A]
  873. 000009FC  DC6C 0036                add.w      D6, [A4 + 0x36]
  874. 00000A00  486D D864                pea.l      [A5 - 0x279C]
  875. 00000A04  3F07                     move.w     -[A7], D7
  876. 00000A06  3F06                     move.w     -[A7], D6
  877. 00000A08  3007                     move.w     D0, D7
  878. 00000A0A  D045                     add.w      D0, D5
  879. 00000A0C  3F00                     move.w     -[A7], D0
  880. 00000A0E  3006                     move.w     D0, D6
  881. 00000A10  D044                     add.w      D0, D4
  882. 00000A12  3F00                     move.w     -[A7], D0
  883. 00000A14  A8A7                     syscall    SetRect
  884. 00000A16  7003                     moveq.l    D0, 0x03
  885. 00000A18  C1C5                     muls.w     D0, D5
  886. 00000A1A  48C0                     ext.l      D0
  887. 00000A1C  81FC 0004                divs.w     D0, 0x4
  888. 00000A20  D06D D866                add.w      D0, [A5 - 0x279A]
  889. 00000A24  3E00                     move.w     D7, D0
  890. 00000A26  2004                     move.l     D0, D4
  891. 00000A28  48C0                     ext.l      D0
  892. 00000A2A  81FC 0002                divs.w     D0, 0x2
  893. 00000A2E  D06D D864                add.w      D0, [A5 - 0x279C]
  894. 00000A32  3C00                     move.w     D6, D0
  895. 00000A34  486D D86C                pea.l      [A5 - 0x2794]
  896. 00000A38  3F07                     move.w     -[A7], D7
  897. 00000A3A  3F2D D864                move.w     -[A7], [A5 - 0x279C]
  898. 00000A3E  3F2D D86A                move.w     -[A7], [A5 - 0x2796]
  899. 00000A42  3F06                     move.w     -[A7], D6
  900. 00000A44  A8A7                     syscall    SetRect
  901. 00000A46  486D D874                pea.l      [A5 - 0x278C]
  902. 00000A4A  3F07                     move.w     -[A7], D7
  903. 00000A4C  3F06                     move.w     -[A7], D6
  904. 00000A4E  3F2D D86A                move.w     -[A7], [A5 - 0x2796]
  905. 00000A52  3F2D D868                move.w     -[A7], [A5 - 0x2798]
  906. 00000A56  A8A7                     syscall    SetRect
  907. 00000A58  3A2C 005C                move.w     D5, [A4 + 0x5C]
  908. 00000A5C  382C 005E                move.w     D4, [A4 + 0x5E]
  909. 00000A60  3E2C 0040                move.w     D7, [A4 + 0x40]
  910. 00000A64  3C2C 0042                move.w     D6, [A4 + 0x42]
  911. 00000A68  486D D87C                pea.l      [A5 - 0x2784]
  912. 00000A6C  3F07                     move.w     -[A7], D7
  913. 00000A6E  3F06                     move.w     -[A7], D6
  914. 00000A70  3007                     move.w     D0, D7
  915. 00000A72  D045                     add.w      D0, D5
  916. 00000A74  3F00                     move.w     -[A7], D0
  917. 00000A76  3006                     move.w     D0, D6
  918. 00000A78  D044                     add.w      D0, D4
  919. 00000A7A  3F00                     move.w     -[A7], D0
  920. 00000A7C  A8A7                     syscall    SetRect
  921. 00000A7E  3E2C 0044                move.w     D7, [A4 + 0x44]
  922. 00000A82  3C2C 0046                move.w     D6, [A4 + 0x46]
  923. 00000A86  486D D884                pea.l      [A5 - 0x277C]
  924. 00000A8A  3F07                     move.w     -[A7], D7
  925. 00000A8C  3F06                     move.w     -[A7], D6
  926. 00000A8E  3007                     move.w     D0, D7
  927. 00000A90  D045                     add.w      D0, D5
  928. 00000A92  3F00                     move.w     -[A7], D0
  929. 00000A94  3006                     move.w     D0, D6
  930. 00000A96  D044                     add.w      D0, D4
  931. 00000A98  3F00                     move.w     -[A7], D0
  932. 00000A9A  A8A7                     syscall    SetRect
  933. 00000A9C  3E2C 0048                move.w     D7, [A4 + 0x48]
  934. 00000AA0  3C2C 004A                move.w     D6, [A4 + 0x4A]
  935. 00000AA4  486D D88C                pea.l      [A5 - 0x2774]
  936. 00000AA8  3F07                     move.w     -[A7], D7
  937. 00000AAA  3F06                     move.w     -[A7], D6
  938. 00000AAC  3007                     move.w     D0, D7
  939. 00000AAE  D045                     add.w      D0, D5
  940. 00000AB0  3F00                     move.w     -[A7], D0
  941. 00000AB2  3006                     move.w     D0, D6
  942. 00000AB4  D044                     add.w      D0, D4
  943. 00000AB6  3F00                     move.w     -[A7], D0
  944. 00000AB8  A8A7                     syscall    SetRect
  945. 00000ABA  3E2C 004C                move.w     D7, [A4 + 0x4C]
  946. 00000ABE  DE6C 0028                add.w      D7, [A4 + 0x28]
  947. 00000AC2  3C2C 004E                move.w     D6, [A4 + 0x4E]
  948. 00000AC6  DC6C 002A                add.w      D6, [A4 + 0x2A]
  949. 00000ACA  486D D894                pea.l      [A5 - 0x276C]
  950. 00000ACE  3F07                     move.w     -[A7], D7
  951. 00000AD0  3F06                     move.w     -[A7], D6
  952. 00000AD2  3007                     move.w     D0, D7
  953. 00000AD4  D045                     add.w      D0, D5
  954. 00000AD6  3F00                     move.w     -[A7], D0
  955. 00000AD8  3006                     move.w     D0, D6
  956. 00000ADA  D044                     add.w      D0, D4
  957. 00000ADC  3F00                     move.w     -[A7], D0
  958. 00000ADE  A8A7                     syscall    SetRect
  959. 00000AE0  3E2C 0050                move.w     D7, [A4 + 0x50]
  960. 00000AE4  DE6C 002C                add.w      D7, [A4 + 0x2C]
  961. 00000AE8  3C2C 0052                move.w     D6, [A4 + 0x52]
  962. 00000AEC  DC6C 002E                add.w      D6, [A4 + 0x2E]
  963. 00000AF0  486D D89C                pea.l      [A5 - 0x2764]
  964. 00000AF4  3F07                     move.w     -[A7], D7
  965. 00000AF6  3F06                     move.w     -[A7], D6
  966. 00000AF8  3007                     move.w     D0, D7
  967. 00000AFA  D045                     add.w      D0, D5
  968. 00000AFC  3F00                     move.w     -[A7], D0
  969. 00000AFE  3006                     move.w     D0, D6
  970. 00000B00  D044                     add.w      D0, D4
  971. 00000B02  3F00                     move.w     -[A7], D0
  972. 00000B04  A8A7                     syscall    SetRect
  973. 00000B06  3E2C 0054                move.w     D7, [A4 + 0x54]
  974. 00000B0A  DE6C 0030                add.w      D7, [A4 + 0x30]
  975. 00000B0E  3C2C 0056                move.w     D6, [A4 + 0x56]
  976. 00000B12  DC6C 0032                add.w      D6, [A4 + 0x32]
  977. 00000B16  486D D8A4                pea.l      [A5 - 0x275C]
  978. 00000B1A  3F07                     move.w     -[A7], D7
  979. 00000B1C  3F06                     move.w     -[A7], D6
  980. 00000B1E  3007                     move.w     D0, D7
  981. 00000B20  D045                     add.w      D0, D5
  982. 00000B22  3F00                     move.w     -[A7], D0
  983. 00000B24  3006                     move.w     D0, D6
  984. 00000B26  D044                     add.w      D0, D4
  985. 00000B28  3F00                     move.w     -[A7], D0
  986. 00000B2A  A8A7                     syscall    SetRect
  987. 00000B2C  3E2C 0058                move.w     D7, [A4 + 0x58]
  988. 00000B30  DE6C 0034                add.w      D7, [A4 + 0x34]
  989. 00000B34  3C2C 005A                move.w     D6, [A4 + 0x5A]
  990. 00000B38  DC6C 0036                add.w      D6, [A4 + 0x36]
  991. 00000B3C  486D D8AC                pea.l      [A5 - 0x2754]
  992. 00000B40  3F07                     move.w     -[A7], D7
  993. 00000B42  3F06                     move.w     -[A7], D6
  994. 00000B44  3007                     move.w     D0, D7
  995. 00000B46  D045                     add.w      D0, D5
  996. 00000B48  3F00                     move.w     -[A7], D0
  997. 00000B4A  3006                     move.w     D0, D6
  998. 00000B4C  D044                     add.w      D0, D4
  999. 00000B4E  3F00                     move.w     -[A7], D0
  1000. 00000B50  A8A7                     syscall    SetRect
  1001. 00000B52  486D D8C2                pea.l      [A5 - 0x273E]
  1002. 00000B56  4267                     clr.w      -[A7]
  1003. 00000B58  302D D6AE                move.w     D0, [A5 - 0x2952]
  1004. 00000B5C  906D D83A                sub.w      D0, [A5 - 0x27C6]
  1005. 00000B60  3F00                     move.w     -[A7], D0
  1006. 00000B62  3F2D D6AC                move.w     -[A7], [A5 - 0x2954]
  1007. 00000B66  3F2D D6AE                move.w     -[A7], [A5 - 0x2952]
  1008. 00000B6A  A8A7                     syscall    SetRect
  1009. 00000B6C  3A2C 0060                move.w     D5, [A4 + 0x60]
  1010. 00000B70  382C 0062                move.w     D4, [A4 + 0x62]
  1011. 00000B74  486D D8CA                pea.l      [A5 - 0x2736]
  1012. 00000B78  42A7                     clr.l      -[A7]
  1013. 00000B7A  3F05                     move.w     -[A7], D5
  1014. 00000B7C  3F04                     move.w     -[A7], D4
  1015. 00000B7E  A8A7                     syscall    SetRect
  1016. 00000B80  3E05                     move.w     D7, D5
  1017. 00000B82  3A2C 0064                move.w     D5, [A4 + 0x64]
  1018. 00000B86  9E45                     sub.w      D7, D5
  1019. 00000B88  48C7                     ext.l      D7
  1020. 00000B8A  8FFC 0002                divs.w     D7, 0x2
  1021. 00000B8E  3C04                     move.w     D6, D4
  1022. 00000B90  382C 0066                move.w     D4, [A4 + 0x66]
  1023. 00000B94  9C44                     sub.w      D6, D4
  1024. 00000B96  48C6                     ext.l      D6
  1025. 00000B98  8DFC 0002                divs.w     D6, 0x2
  1026. 00000B9C  486D D8D2                pea.l      [A5 - 0x272E]
  1027. 00000BA0  3F07                     move.w     -[A7], D7
  1028. 00000BA2  3F06                     move.w     -[A7], D6
  1029. 00000BA4  3007                     move.w     D0, D7
  1030. 00000BA6  D045                     add.w      D0, D5
  1031. 00000BA8  3F00                     move.w     -[A7], D0
  1032. 00000BAA  3006                     move.w     D0, D6
  1033. 00000BAC  D044                     add.w      D0, D4
  1034. 00000BAE  3F00                     move.w     -[A7], D0
  1035. 00000BB0  A8A7                     syscall    SetRect
  1036. 00000BB2  4A2D D69F                tst.b      [A5 - 0x2961]
  1037. 00000BB6  6720                     beq        +0x22 /* 00000BD8 */
  1038. 00000BB8  3B7C 0002 D900           move.w     [A5 - 0x2700], 0x2
  1039. 00000BBE  3B7C 0009 D902           move.w     [A5 - 0x26FE], 0x9 /* '\t' */
  1040. 00000BC4  3B7C 0008 D904           move.w     [A5 - 0x26FC], 0x8
  1041. 00000BCA  3B7C 0004 D906           move.w     [A5 - 0x26FA], 0x4
  1042. 00000BD0  3B7C 000D D908           move.w     [A5 - 0x26F8], 0xD /* '\r' */
  1043. 00000BD6  6018                     bra        +0x1A /* 00000BF0 */
  1044. label00000BD8:
  1045. 00000BD8  426D D900                clr.w      [A5 - 0x2700]
  1046. 00000BDC  3B7C 0001 D902           move.w     [A5 - 0x26FE], 0x1
  1047. 00000BE2  3B7C 0001 D904           move.w     [A5 - 0x26FC], 0x1
  1048. 00000BE8  426D D906                clr.w      [A5 - 0x26FA]
  1049. 00000BEC  426D D908                clr.w      [A5 - 0x26F8]
  1050. label00000BF0:
  1051. 00000BF0  4CDF 18F8                movem.l    D3,D4,D5,D6,D7,A3,A4, [A7]+
  1052. 00000BF4  4E5E                     unlink     A6
  1053. 00000BF6  4E75                     rts
  1054. fn00000BF8:
  1055. 00000BF8  4A2D D69F                tst.b      [A5 - 0x2961]
  1056. 00000BFC  6720                     beq        +0x22 /* 00000C1E */
  1057. 00000BFE  0C6D 0008 D67C           cmpi.w     [A5 - 0x2984], 0x8
  1058. 00000C04  660C                     bne        +0xE /* 00000C12 */
  1059. 00000C06  3F3C 0008                move.w     -[A7], 0x8
  1060. 00000C0A  4EAD 02B2                jsr        [A5 + 0x2B2 /* export_82 */]
  1061. 00000C0E  548F                     addq.l     A7, 2
  1062. 00000C10  6016                     bra        +0x18 /* 00000C28 */
  1063. label00000C12:
  1064. 00000C12  3F3C 0001                move.w     -[A7], 0x1
  1065. 00000C16  4EAD 02B2                jsr        [A5 + 0x2B2 /* export_82 */]
  1066. 00000C1A  548F                     addq.l     A7, 2
  1067. 00000C1C  600A                     bra        +0xC /* 00000C28 */
  1068. label00000C1E:
  1069. 00000C1E  3F3C 0001                move.w     -[A7], 0x1
  1070. 00000C22  4EAD 02B2                jsr        [A5 + 0x2B2 /* export_82 */]
  1071. 00000C26  548F                     addq.l     A7, 2
  1072. label00000C28:
  1073. 00000C28  4A6D FF60                tst.w      [A5 - 0xA0]
  1074. 00000C2C  6704                     beq        +0x6 /* 00000C32 */
  1075. 00000C2E  7000                     moveq.l    D0, 0x00
  1076. 00000C30  600C                     bra        +0xE /* 00000C3E */
  1077. label00000C32:
  1078. 00000C32  3F3C 03EB                move.w     -[A7], 0x3EB
  1079. 00000C36  4EBA 2042                jsr        [PC + 0x2042 /* 00002C7A */]
  1080. 00000C3A  70FF                     moveq.l    D0, 0xFFFFFFFF
  1081. 00000C3C  548F                     addq.l     A7, 2
  1082. label00000C3E:
  1083. 00000C3E  4E75                     rts
  1084. fn00000C40:
  1085. 00000C40  48E7 0300                movem.l    -[A7], D6,D7
  1086. 00000C44  206D D63C                movea.l    A0, [A5 - 0x29C4]
  1087. 00000C48  2F10                     move.l     -[A7], [A0]
  1088. 00000C4A  A851                     syscall    SetCursor
  1089. 00000C4C  486D D5AA                pea.l      [A5 - 0x2A56]
  1090. 00000C50  A874                     syscall    GetPort
  1091. 00000C52  4A2D D69F                tst.b      [A5 - 0x2961]
  1092. 00000C56  673A                     beq        +0x3C /* 00000C92 */
  1093. 00000C58  42A7                     clr.l      -[A7]
  1094. 00000C5A  3F3C 03E8                move.w     -[A7], 0x3E8
  1095. 00000C5E  AA18                     syscall    GetCTable
  1096. 00000C60  2B5F FF62                move.l     [A5 - 0x9E], [A7]+
  1097. 00000C64  4267                     clr.w      -[A7]
  1098. 00000C66  A9AF                     syscall    ResError
  1099. 00000C68  3C1F                     move.w     D6, [A7]+
  1100. 00000C6A  4A46                     tst.w      D6
  1101. 00000C6C  6600 03BC                bne        +0x3BE /* 0000102A */
  1102. 00000C70  206D FF62                movea.l    A0, [A5 - 0x9E]
  1103. 00000C74  A029                     syscall    HLock
  1104. 00000C76  42A7                     clr.l      -[A7]
  1105. 00000C78  AA28                     syscall    GetCTSeed
  1106. 00000C7A  206D FF62                movea.l    A0, [A5 - 0x9E]
  1107. 00000C7E  2050                     movea.l    A0, [A0]
  1108. 00000C80  209F                     move.l     [A0], [A7]+
  1109. 00000C82  206D FF62                movea.l    A0, [A5 - 0x9E]
  1110. 00000C86  2050                     movea.l    A0, [A0]
  1111. 00000C88  7001                     moveq.l    D0, 0x01
  1112. 00000C8A  D068 0006                add.w      D0, [A0 + 0x6]
  1113. 00000C8E  3B40 FF66                move.w     [A5 - 0x9A], D0
  1114. label00000C92:
  1115. 00000C92  3B6D D6AC FF74           move.w     [A5 - 0x8C], [A5 - 0x2954]
  1116. 00000C98  3B6D D6AE FF76           move.w     [A5 - 0x8A], [A5 - 0x2952]
  1117. 00000C9E  302D FF60                move.w     D0, [A5 - 0xA0]
  1118. 00000CA2  C1ED FF74                muls.w     D0, [A5 - 0x8C]
  1119. 00000CA6  0640 001F                addi.w     D0, 0x1F
  1120. 00000CAA  EA40                     asr        D0.w, 5
  1121. 00000CAC  E548                     lsl        D0.w, 2
  1122. 00000CAE  3B40 FF72                move.w     [A5 - 0x8E], D0
  1123. 00000CB2  C1ED FF76                muls.w     D0, [A5 - 0x8A]
  1124. 00000CB6  2B40 FF6E                move.l     [A5 - 0x92], D0
  1125. 00000CBA  A11E                     syscall    NewPtr, flags=1
  1126. 00000CBC  2B48 FF6A                move.l     [A5 - 0x96], A0
  1127. 00000CC0  3C38 0220                move.w     D6, [0x00000220 /* MemErr */]
  1128. 00000CC4  4A46                     tst.w      D6
  1129. 00000CC6  6600 0370                bne        +0x372 /* 00001038 */
  1130. 00000CCA  486D FF78                pea.l      [A5 - 0x88]
  1131. 00000CCE  42A7                     clr.l      -[A7]
  1132. 00000CD0  3F2D FF74                move.w     -[A7], [A5 - 0x8C]
  1133. 00000CD4  3F2D FF76                move.w     -[A7], [A5 - 0x8A]
  1134. 00000CD8  A8A7                     syscall    SetRect
  1135. 00000CDA  706C                     moveq.l    D0, 0x6C
  1136. 00000CDC  A11E                     syscall    NewPtr, flags=1
  1137. 00000CDE  2B48 FF80                move.l     [A5 - 0x80], A0
  1138. 00000CE2  3C38 0220                move.w     D6, [0x00000220 /* MemErr */]
  1139. 00000CE6  4A46                     tst.w      D6
  1140. 00000CE8  6600 034E                bne        +0x350 /* 00001038 */
  1141. 00000CEC  4A2D D69F                tst.b      [A5 - 0x2961]
  1142. 00000CF0  6766                     beq        +0x68 /* 00000D58 */
  1143. 00000CF2  42A7                     clr.l      -[A7]
  1144. 00000CF4  AA32                     syscall    GetGDevice
  1145. 00000CF6  2B5F D5AE                move.l     [A5 - 0x2A52], [A7]+
  1146. 00000CFA  2F2D D68E                move.l     -[A7], [A5 - 0x2972]
  1147. 00000CFE  AA31                     syscall    SetGDevice
  1148. 00000D00  2F2D FF80                move.l     -[A7], [A5 - 0x80]
  1149. 00000D04  AA00                     syscall    OpenCPort
  1150. 00000D06  206D FF80                movea.l    A0, [A5 - 0x80]
  1151. 00000D0A  2068 0002                movea.l    A0, [A0 + 0x2]
  1152. 00000D0E  2050                     movea.l    A0, [A0]
  1153. 00000D10  20AD FF6A                move.l     [A0], [A5 - 0x96]
  1154. 00000D14  302D FF72                move.w     D0, [A5 - 0x8E]
  1155. 00000D18  0040 8000                ori.w      D0, 0x8000
  1156. 00000D1C  206D FF80                movea.l    A0, [A5 - 0x80]
  1157. 00000D20  2068 0002                movea.l    A0, [A0 + 0x2]
  1158. 00000D24  2050                     movea.l    A0, [A0]
  1159. 00000D26  3140 0004                move.w     [A0 + 0x4], D0
  1160. 00000D2A  206D FF80                movea.l    A0, [A5 - 0x80]
  1161. 00000D2E  2068 0002                movea.l    A0, [A0 + 0x2]
  1162. 00000D32  2050                     movea.l    A0, [A0]
  1163. 00000D34  216D FF78 0006           move.l     [A0 + 0x6], [A5 - 0x88]
  1164. 00000D3A  216D FF7C 000A           move.l     [A0 + 0xA], [A5 - 0x84]
  1165. 00000D40  206D FF80                movea.l    A0, [A5 - 0x80]
  1166. 00000D44  2068 0002                movea.l    A0, [A0 + 0x2]
  1167. 00000D48  2050                     movea.l    A0, [A0]
  1168. 00000D4A  216D FF62 002A           move.l     [A0 + 0x2A], [A5 - 0x9E]
  1169. 00000D50  2F2D D5AE                move.l     -[A7], [A5 - 0x2A52]
  1170. 00000D54  AA31                     syscall    SetGDevice
  1171. 00000D56  602A                     bra        +0x2C /* 00000D82 */
  1172. label00000D58:
  1173. 00000D58  2F2D FF80                move.l     -[A7], [A5 - 0x80]
  1174. 00000D5C  A86F                     syscall    OpenPort
  1175. 00000D5E  206D FF80                movea.l    A0, [A5 - 0x80]
  1176. 00000D62  216D FF6A 0002           move.l     [A0 + 0x2], [A5 - 0x96]
  1177. 00000D68  206D FF80                movea.l    A0, [A5 - 0x80]
  1178. 00000D6C  316D FF72 0006           move.w     [A0 + 0x6], [A5 - 0x8E]
  1179. 00000D72  206D FF80                movea.l    A0, [A5 - 0x80]
  1180. 00000D76  216D FF78 0008           move.l     [A0 + 0x8], [A5 - 0x88]
  1181. 00000D7C  216D FF7C 000C           move.l     [A0 + 0xC], [A5 - 0x84]
  1182. label00000D82:
  1183. 00000D82  206D FF80                movea.l    A0, [A5 - 0x80]
  1184. 00000D86  216D FF78 0010           move.l     [A0 + 0x10], [A5 - 0x88]
  1185. 00000D8C  216D FF7C 0014           move.l     [A0 + 0x14], [A5 - 0x84]
  1186. 00000D92  206D FF80                movea.l    A0, [A5 - 0x80]
  1187. 00000D96  2F28 0018                move.l     -[A7], [A0 + 0x18]
  1188. 00000D9A  486D FF78                pea.l      [A5 - 0x88]
  1189. 00000D9E  A8DF                     syscall    RectRgn
  1190. 00000DA0  486D FF78                pea.l      [A5 - 0x88]
  1191. 00000DA4  A87B                     syscall    ClipRect
  1192. 00000DA6  4878 001E                push.l     0x1E
  1193. 00000DAA  A863                     syscall    BackColor
  1194. 00000DAC  4878 0021                push.l     0x21 /* '!' */
  1195. 00000DB0  A862                     syscall    ForeColor
  1196. 00000DB2  486D FF78                pea.l      [A5 - 0x88]
  1197. 00000DB6  A8A2                     syscall    PaintRect
  1198. 00000DB8  3B7C 0C80 FF8E           move.w     [A5 - 0x72], 0xC80
  1199. 00000DBE  3B7C 0140 FF90           move.w     [A5 - 0x70], 0x140
  1200. 00000DC4  302D FF60                move.w     D0, [A5 - 0xA0]
  1201. 00000DC8  C1ED FF8E                muls.w     D0, [A5 - 0x72]
  1202. 00000DCC  0640 001F                addi.w     D0, 0x1F
  1203. 00000DD0  EA40                     asr        D0.w, 5
  1204. 00000DD2  E548                     lsl        D0.w, 2
  1205. 00000DD4  3B40 FF8C                move.w     [A5 - 0x74], D0
  1206. 00000DD8  C1ED FF90                muls.w     D0, [A5 - 0x70]
  1207. 00000DDC  2B40 FF88                move.l     [A5 - 0x78], D0
  1208. 00000DE0  4A2D D69F                tst.b      [A5 - 0x2961]
  1209. 00000DE4  6706                     beq        +0x8 /* 00000DEC */
  1210. 00000DE6  2E2D FF88                move.l     D7, [A5 - 0x78]
  1211. 00000DEA  6006                     bra        +0x8 /* 00000DF2 */
  1212. label00000DEC:
  1213. 00000DEC  2E2D FF88                move.l     D7, [A5 - 0x78]
  1214. 00000DF0  DE87                     add.l      D7, D7
  1215. label00000DF2:
  1216. 00000DF2  2007                     move.l     D0, D7
  1217. 00000DF4  A11E                     syscall    NewPtr, flags=1
  1218. 00000DF6  2B48 FF84                move.l     [A5 - 0x7C], A0
  1219. 00000DFA  3C38 0220                move.w     D6, [0x00000220 /* MemErr */]
  1220. 00000DFE  4A46                     tst.w      D6
  1221. 00000E00  6600 0236                bne        +0x238 /* 00001038 */
  1222. 00000E04  486D FF92                pea.l      [A5 - 0x6E]
  1223. 00000E08  42A7                     clr.l      -[A7]
  1224. 00000E0A  3F2D FF8E                move.w     -[A7], [A5 - 0x72]
  1225. 00000E0E  3F2D FF90                move.w     -[A7], [A5 - 0x70]
  1226. 00000E12  A8A7                     syscall    SetRect
  1227. 00000E14  706C                     moveq.l    D0, 0x6C
  1228. 00000E16  A11E                     syscall    NewPtr, flags=1
  1229. 00000E18  2B48 FF9A                move.l     [A5 - 0x66], A0
  1230. 00000E1C  3C38 0220                move.w     D6, [0x00000220 /* MemErr */]
  1231. 00000E20  4A46                     tst.w      D6
  1232. 00000E22  6600 0214                bne        +0x216 /* 00001038 */
  1233. 00000E26  4A2D D69F                tst.b      [A5 - 0x2961]
  1234. 00000E2A  6766                     beq        +0x68 /* 00000E92 */
  1235. 00000E2C  42A7                     clr.l      -[A7]
  1236. 00000E2E  AA32                     syscall    GetGDevice
  1237. 00000E30  2B5F D5AE                move.l     [A5 - 0x2A52], [A7]+
  1238. 00000E34  2F2D D68E                move.l     -[A7], [A5 - 0x2972]
  1239. 00000E38  AA31                     syscall    SetGDevice
  1240. 00000E3A  2F2D FF9A                move.l     -[A7], [A5 - 0x66]
  1241. 00000E3E  AA00                     syscall    OpenCPort
  1242. 00000E40  206D FF9A                movea.l    A0, [A5 - 0x66]
  1243. 00000E44  2068 0002                movea.l    A0, [A0 + 0x2]
  1244. 00000E48  2050                     movea.l    A0, [A0]
  1245. 00000E4A  20AD FF84                move.l     [A0], [A5 - 0x7C]
  1246. 00000E4E  302D FF8C                move.w     D0, [A5 - 0x74]
  1247. 00000E52  0040 8000                ori.w      D0, 0x8000
  1248. 00000E56  206D FF9A                movea.l    A0, [A5 - 0x66]
  1249. 00000E5A  2068 0002                movea.l    A0, [A0 + 0x2]
  1250. 00000E5E  2050                     movea.l    A0, [A0]
  1251. 00000E60  3140 0004                move.w     [A0 + 0x4], D0
  1252. 00000E64  206D FF9A                movea.l    A0, [A5 - 0x66]
  1253. 00000E68  2068 0002                movea.l    A0, [A0 + 0x2]
  1254. 00000E6C  2050                     movea.l    A0, [A0]
  1255. 00000E6E  216D FF92 0006           move.l     [A0 + 0x6], [A5 - 0x6E]
  1256. 00000E74  216D FF96 000A           move.l     [A0 + 0xA], [A5 - 0x6A]
  1257. 00000E7A  206D FF9A                movea.l    A0, [A5 - 0x66]
  1258. 00000E7E  2068 0002                movea.l    A0, [A0 + 0x2]
  1259. 00000E82  2050                     movea.l    A0, [A0]
  1260. 00000E84  216D FF62 002A           move.l     [A0 + 0x2A], [A5 - 0x9E]
  1261. 00000E8A  2F2D D5AE                move.l     -[A7], [A5 - 0x2A52]
  1262. 00000E8E  AA31                     syscall    SetGDevice
  1263. 00000E90  602A                     bra        +0x2C /* 00000EBC */
  1264. label00000E92:
  1265. 00000E92  2F2D FF9A                move.l     -[A7], [A5 - 0x66]
  1266. 00000E96  A86F                     syscall    OpenPort
  1267. 00000E98  206D FF9A                movea.l    A0, [A5 - 0x66]
  1268. 00000E9C  216D FF84 0002           move.l     [A0 + 0x2], [A5 - 0x7C]
  1269. 00000EA2  206D FF9A                movea.l    A0, [A5 - 0x66]
  1270. 00000EA6  316D FF8C 0006           move.w     [A0 + 0x6], [A5 - 0x74]
  1271. 00000EAC  206D FF9A                movea.l    A0, [A5 - 0x66]
  1272. 00000EB0  216D FF92 0008           move.l     [A0 + 0x8], [A5 - 0x6E]
  1273. 00000EB6  216D FF96 000C           move.l     [A0 + 0xC], [A5 - 0x6A]
  1274. label00000EBC:
  1275. 00000EBC  206D FF9A                movea.l    A0, [A5 - 0x66]
  1276. 00000EC0  216D FF92 0010           move.l     [A0 + 0x10], [A5 - 0x6E]
  1277. 00000EC6  216D FF96 0014           move.l     [A0 + 0x14], [A5 - 0x6A]
  1278. 00000ECC  206D FF9A                movea.l    A0, [A5 - 0x66]
  1279. 00000ED0  2F28 0018                move.l     -[A7], [A0 + 0x18]
  1280. 00000ED4  486D FF92                pea.l      [A5 - 0x6E]
  1281. 00000ED8  A8DF                     syscall    RectRgn
  1282. 00000EDA  486D FF92                pea.l      [A5 - 0x6E]
  1283. 00000EDE  A87B                     syscall    ClipRect
  1284. 00000EE0  4878 001E                push.l     0x1E
  1285. 00000EE4  A863                     syscall    BackColor
  1286. 00000EE6  4878 0021                push.l     0x21 /* '!' */
  1287. 00000EEA  A862                     syscall    ForeColor
  1288. 00000EEC  486D FF92                pea.l      [A5 - 0x6E]
  1289. 00000EF0  A8A2                     syscall    PaintRect
  1290. 00000EF2  302D D6E8                move.w     D0, [A5 - 0x2918]
  1291. 00000EF6  906D D6E4                sub.w      D0, [A5 - 0x291C]
  1292. 00000EFA  3B40 FFA8                move.w     [A5 - 0x58], D0
  1293. 00000EFE  322D D6E6                move.w     D1, [A5 - 0x291A]
  1294. 00000F02  926D D6E2                sub.w      D1, [A5 - 0x291E]
  1295. 00000F06  3B41 FFAA                move.w     [A5 - 0x56], D1
  1296. 00000F0A  C1ED FF60                muls.w     D0, [A5 - 0xA0]
  1297. 00000F0E  0640 001F                addi.w     D0, 0x1F
  1298. 00000F12  EA40                     asr        D0.w, 5
  1299. 00000F14  E548                     lsl        D0.w, 2
  1300. 00000F16  3B40 FFA6                move.w     [A5 - 0x5A], D0
  1301. 00000F1A  C1C1                     muls.w     D0, D1
  1302. 00000F1C  2B40 FFA2                move.l     [A5 - 0x5E], D0
  1303. 00000F20  A11E                     syscall    NewPtr, flags=1
  1304. 00000F22  2B48 FF9E                move.l     [A5 - 0x62], A0
  1305. 00000F26  3C38 0220                move.w     D6, [0x00000220 /* MemErr */]
  1306. 00000F2A  4A46                     tst.w      D6
  1307. 00000F2C  6600 010A                bne        +0x10C /* 00001038 */
  1308. 00000F30  486D FFAC                pea.l      [A5 - 0x54]
  1309. 00000F34  42A7                     clr.l      -[A7]
  1310. 00000F36  3F2D FFA8                move.w     -[A7], [A5 - 0x58]
  1311. 00000F3A  3F2D FFAA                move.w     -[A7], [A5 - 0x56]
  1312. 00000F3E  A8A7                     syscall    SetRect
  1313. 00000F40  706C                     moveq.l    D0, 0x6C
  1314. 00000F42  A11E                     syscall    NewPtr, flags=1
  1315. 00000F44  2B48 FFB4                move.l     [A5 - 0x4C], A0
  1316. 00000F48  3C38 0220                move.w     D6, [0x00000220 /* MemErr */]
  1317. 00000F4C  4A46                     tst.w      D6
  1318. 00000F4E  6600 00E8                bne        +0xEA /* 00001038 */
  1319. 00000F52  4A2D D69F                tst.b      [A5 - 0x2961]
  1320. 00000F56  6766                     beq        +0x68 /* 00000FBE */
  1321. 00000F58  42A7                     clr.l      -[A7]
  1322. 00000F5A  AA32                     syscall    GetGDevice
  1323. 00000F5C  2B5F D5AE                move.l     [A5 - 0x2A52], [A7]+
  1324. 00000F60  2F2D D68E                move.l     -[A7], [A5 - 0x2972]
  1325. 00000F64  AA31                     syscall    SetGDevice
  1326. 00000F66  2F2D FFB4                move.l     -[A7], [A5 - 0x4C]
  1327. 00000F6A  AA00                     syscall    OpenCPort
  1328. 00000F6C  206D FFB4                movea.l    A0, [A5 - 0x4C]
  1329. 00000F70  2068 0002                movea.l    A0, [A0 + 0x2]
  1330. 00000F74  2050                     movea.l    A0, [A0]
  1331. 00000F76  20AD FF9E                move.l     [A0], [A5 - 0x62]
  1332. 00000F7A  302D FFA6                move.w     D0, [A5 - 0x5A]
  1333. 00000F7E  0040 8000                ori.w      D0, 0x8000
  1334. 00000F82  206D FFB4                movea.l    A0, [A5 - 0x4C]
  1335. 00000F86  2068 0002                movea.l    A0, [A0 + 0x2]
  1336. 00000F8A  2050                     movea.l    A0, [A0]
  1337. 00000F8C  3140 0004                move.w     [A0 + 0x4], D0
  1338. 00000F90  206D FFB4                movea.l    A0, [A5 - 0x4C]
  1339. 00000F94  2068 0002                movea.l    A0, [A0 + 0x2]
  1340. 00000F98  2050                     movea.l    A0, [A0]
  1341. 00000F9A  216D FFAC 0006           move.l     [A0 + 0x6], [A5 - 0x54]
  1342. 00000FA0  216D FFB0 000A           move.l     [A0 + 0xA], [A5 - 0x50]
  1343. 00000FA6  206D FFB4                movea.l    A0, [A5 - 0x4C]
  1344. 00000FAA  2068 0002                movea.l    A0, [A0 + 0x2]
  1345. 00000FAE  2050                     movea.l    A0, [A0]
  1346. 00000FB0  216D FF62 002A           move.l     [A0 + 0x2A], [A5 - 0x9E]
  1347. 00000FB6  2F2D D5AE                move.l     -[A7], [A5 - 0x2A52]
  1348. 00000FBA  AA31                     syscall    SetGDevice
  1349. 00000FBC  602A                     bra        +0x2C /* 00000FE8 */
  1350. label00000FBE:
  1351. 00000FBE  2F2D FFB4                move.l     -[A7], [A5 - 0x4C]
  1352. 00000FC2  A86F                     syscall    OpenPort
  1353. 00000FC4  206D FFB4                movea.l    A0, [A5 - 0x4C]
  1354. 00000FC8  216D FF9E 0002           move.l     [A0 + 0x2], [A5 - 0x62]
  1355. 00000FCE  206D FFB4                movea.l    A0, [A5 - 0x4C]
  1356. 00000FD2  316D FFA6 0006           move.w     [A0 + 0x6], [A5 - 0x5A]
  1357. 00000FD8  206D FFB4                movea.l    A0, [A5 - 0x4C]
  1358. 00000FDC  216D FFAC 0008           move.l     [A0 + 0x8], [A5 - 0x54]
  1359. 00000FE2  216D FFB0 000C           move.l     [A0 + 0xC], [A5 - 0x50]
  1360. label00000FE8:
  1361. 00000FE8  206D FFB4                movea.l    A0, [A5 - 0x4C]
  1362. 00000FEC  216D FFAC 0010           move.l     [A0 + 0x10], [A5 - 0x54]
  1363. 00000FF2  216D FFB0 0014           move.l     [A0 + 0x14], [A5 - 0x50]
  1364. 00000FF8  206D FFB4                movea.l    A0, [A5 - 0x4C]
  1365. 00000FFC  2F28 0018                move.l     -[A7], [A0 + 0x18]
  1366. 00001000  486D FFAC                pea.l      [A5 - 0x54]
  1367. 00001004  A8DF                     syscall    RectRgn
  1368. 00001006  486D FFAC                pea.l      [A5 - 0x54]
  1369. 0000100A  A87B                     syscall    ClipRect
  1370. 0000100C  4878 001E                push.l     0x1E
  1371. 00001010  A863                     syscall    BackColor
  1372. 00001012  4878 0021                push.l     0x21 /* '!' */
  1373. 00001016  A862                     syscall    ForeColor
  1374. 00001018  486D FFAC                pea.l      [A5 - 0x54]
  1375. 0000101C  A8A2                     syscall    PaintRect
  1376. 0000101E  2F2D D5AA                move.l     -[A7], [A5 - 0x2A56]
  1377. 00001022  A873                     syscall    SetPort
  1378. 00001024  A850                     syscall    InitCursor
  1379. 00001026  7000                     moveq.l    D0, 0x00
  1380. 00001028  601A                     bra        +0x1C /* 00001044 */
  1381. label0000102A:
  1382. 0000102A  3F3C 03EA                move.w     -[A7], 0x3EA
  1383. 0000102E  4EBA 1C4A                jsr        [PC + 0x1C4A /* 00002C7A */]
  1384. 00001032  70FF                     moveq.l    D0, 0xFFFFFFFF
  1385. 00001034  548F                     addq.l     A7, 2
  1386. 00001036  600C                     bra        +0xE /* 00001044 */
  1387. label00001038:
  1388. 00001038  3F3C 03EC                move.w     -[A7], 0x3EC
  1389. 0000103C  4EBA 1C3C                jsr        [PC + 0x1C3C /* 00002C7A */]
  1390. 00001040  70FF                     moveq.l    D0, 0xFFFFFFFF
  1391. 00001042  548F                     addq.l     A7, 2
  1392. label00001044:
  1393. 00001044  4CDF 00C0                movem.l    D6,D7, [A7]+
  1394. 00001048  4E75                     rts
  1395. fn0000104A:
  1396. 0000104A  4E56 FFF8                link       A6, -0x0008
  1397. 0000104E  48E7 0F18                movem.l    -[A7], D4,D5,D6,D7,A3,A4
  1398. 00001052  3E2D D68A                move.w     D7, [A5 - 0x2976]
  1399. 00001056  9E6D D6AC                sub.w      D7, [A5 - 0x2954]
  1400. 0000105A  48C7                     ext.l      D7
  1401. 0000105C  8FFC 0002                divs.w     D7, 0x2
  1402. 00001060  CE6D D67E                and.w      D7, [A5 - 0x2982]
  1403. 00001064  3C2D D68C                move.w     D6, [A5 - 0x2974]
  1404. 00001068  9C6D D6AE                sub.w      D6, [A5 - 0x2952]
  1405. 0000106C  48C6                     ext.l      D6
  1406. 0000106E  8DFC 0002                divs.w     D6, 0x2
  1407. 00001072  2D6D D682 FFF8           move.l     [A6 - 0x8], [A5 - 0x297E]
  1408. 00001078  2D6D D686 FFFC           move.l     [A6 - 0x4], [A5 - 0x297A]
  1409. 0000107E  4A2D D69F                tst.b      [A5 - 0x2961]
  1410. 00001082  6722                     beq        +0x24 /* 000010A6 */
  1411. 00001084  42A7                     clr.l      -[A7]
  1412. 00001086  42A7                     clr.l      -[A7]
  1413. 00001088  486E FFF8                pea.l      [A6 - 0x8]
  1414. 0000108C  486D CE9A                pea.l      [A5 - 0x3166]
  1415. 00001090  2F3C 0002 0100           move.l     -[A7], 0x20100
  1416. 00001096  4878 FFFF                push.l     0xFFFF
  1417. 0000109A  4227                     clr.b      -[A7]
  1418. 0000109C  42A7                     clr.l      -[A7]
  1419. 0000109E  AA45                     syscall    NewCWindow
  1420. 000010A0  2B5F D6A6                move.l     [A5 - 0x295A], [A7]+
  1421. 000010A4  6020                     bra        +0x22 /* 000010C6 */
  1422. label000010A6:
  1423. 000010A6  42A7                     clr.l      -[A7]
  1424. 000010A8  42A7                     clr.l      -[A7]
  1425. 000010AA  486E FFF8                pea.l      [A6 - 0x8]
  1426. 000010AE  486D CE9A                pea.l      [A5 - 0x3166]
  1427. 000010B2  2F3C 0002 0100           move.l     -[A7], 0x20100
  1428. 000010B8  4878 FFFF                push.l     0xFFFF
  1429. 000010BC  4227                     clr.b      -[A7]
  1430. 000010BE  42A7                     clr.l      -[A7]
  1431. 000010C0  A913                     syscall    NewWindow
  1432. 000010C2  2B5F D6A6                move.l     [A5 - 0x295A], [A7]+
  1433. label000010C6:
  1434. 000010C6  4AAD D6A6                tst.l      [A5 - 0x295A]
  1435. 000010CA  6700 0194                beq        +0x196 /* 00001260 */
  1436. 000010CE  2F2D D6A6                move.l     -[A7], [A5 - 0x295A]
  1437. 000010D2  A873                     syscall    SetPort
  1438. 000010D4  4878 001E                push.l     0x1E
  1439. 000010D8  A863                     syscall    BackColor
  1440. 000010DA  4878 0021                push.l     0x21 /* '!' */
  1441. 000010DE  A862                     syscall    ForeColor
  1442. 000010E0  3007                     move.w     D0, D7
  1443. 000010E2  4440                     neg.w      D0
  1444. 000010E4  3F00                     move.w     -[A7], D0
  1445. 000010E6  3006                     move.w     D0, D6
  1446. 000010E8  4440                     neg.w      D0
  1447. 000010EA  3F00                     move.w     -[A7], D0
  1448. 000010EC  A878                     syscall    SetOrigin
  1449. 000010EE  486D D6B8                pea.l      [A5 - 0x2948]
  1450. 000010F2  42A7                     clr.l      -[A7]
  1451. 000010F4  3F2D D68A                move.w     -[A7], [A5 - 0x2976]
  1452. 000010F8  3F2D D68C                move.w     -[A7], [A5 - 0x2974]
  1453. 000010FC  A8A7                     syscall    SetRect
  1454. 000010FE  486D D6B8                pea.l      [A5 - 0x2948]
  1455. 00001102  3007                     move.w     D0, D7
  1456. 00001104  4440                     neg.w      D0
  1457. 00001106  3F00                     move.w     -[A7], D0
  1458. 00001108  3006                     move.w     D0, D6
  1459. 0000110A  4440                     neg.w      D0
  1460. 0000110C  3F00                     move.w     -[A7], D0
  1461. 0000110E  A8A8                     syscall    OffsetRect
  1462. 00001110  42A7                     clr.l      -[A7]
  1463. 00001112  A8D8                     syscall    NewRgn
  1464. 00001114  2B5F D6C0                move.l     [A5 - 0x2940], [A7]+
  1465. 00001118  2F2D D6C0                move.l     -[A7], [A5 - 0x2940]
  1466. 0000111C  486D D6B8                pea.l      [A5 - 0x2948]
  1467. 00001120  A8DF                     syscall    RectRgn
  1468. 00001122  42A7                     clr.l      -[A7]
  1469. 00001124  A8D8                     syscall    NewRgn
  1470. 00001126  285F                     movea.l    A4, [A7]+
  1471. 00001128  2F0C                     move.l     -[A7], A4
  1472. 0000112A  486D D6B0                pea.l      [A5 - 0x2950]
  1473. 0000112E  A8DF                     syscall    RectRgn
  1474. 00001130  2F2D D6C0                move.l     -[A7], [A5 - 0x2940]
  1475. 00001134  2F0C                     move.l     -[A7], A4
  1476. 00001136  2F2D D6C0                move.l     -[A7], [A5 - 0x2940]
  1477. 0000113A  A8E6                     syscall    DiffRgn
  1478. 0000113C  2F0C                     move.l     -[A7], A4
  1479. 0000113E  A8D9                     syscall    DisposRgn/DisposeRgn
  1480. 00001140  486D D6B8                pea.l      [A5 - 0x2948]
  1481. 00001144  A8A2                     syscall    PaintRect
  1482. 00001146  1B7C 0001 D6A0           move.b     [A5 - 0x2960], 0x1
  1483. 0000114C  4A2D D69F                tst.b      [A5 - 0x2961]
  1484. 00001150  6700 0100                beq        +0x102 /* 00001252 */
  1485. 00001154  42A7                     clr.l      -[A7]
  1486. 00001156  2F2D FF62                move.l     -[A7], [A5 - 0x9E]
  1487. 0000115A  4EBA 293E                jsr        [PC + 0x293E /* 00003A9A */]
  1488. 0000115E  2A1F                     move.l     D5, [A7]+
  1489. 00001160  2005                     move.l     D0, D5
  1490. 00001162  A122                     syscall    NewHandle, flags=1
  1491. 00001164  2B48 D6C8                move.l     [A5 - 0x2938], A0
  1492. 00001168  2F05                     move.l     -[A7], D5
  1493. 0000116A  2F10                     move.l     -[A7], [A0]
  1494. 0000116C  226D FF62                movea.l    A1, [A5 - 0x9E]
  1495. 00001170  2F11                     move.l     -[A7], [A1]
  1496. 00001172  4EBA 1794                jsr        [PC + 0x1794 /* 00002908 */]
  1497. 00001176  3B6D FF66 D6CC           move.w     [A5 - 0x2934], [A5 - 0x9A]
  1498. 0000117C  4297                     clr.l      [A7]
  1499. 0000117E  3F2D D6CC                move.w     -[A7], [A5 - 0x2934]
  1500. 00001182  2F2D D6C8                move.l     -[A7], [A5 - 0x2938]
  1501. 00001186  4878 0002                push.l     0x2
  1502. 0000118A  AA91                     syscall    NewPalette
  1503. 0000118C  2B5F D6C4                move.l     [A5 - 0x293C], [A7]+
  1504. 00001190  4AAD D6C4                tst.l      [A5 - 0x293C]
  1505. 00001194  508F                     addq.l     A7, 8
  1506. 00001196  6700 00C8                beq        +0xCA /* 00001260 */
  1507. 0000119A  2F2D D6A6                move.l     -[A7], [A5 - 0x295A]
  1508. 0000119E  2F2D D6C4                move.l     -[A7], [A5 - 0x293C]
  1509. 000011A2  1F3C 0001                move.b     -[A7], 0x1
  1510. 000011A6  AA95                     syscall    SetPalette/NSetPalette
  1511. 000011A8  3B7C 0100 DF54           move.w     [A5 - 0x20AC], 0x100
  1512. 000011AE  1B7C 0001 D6A1           move.b     [A5 - 0x295F], 0x1
  1513. 000011B4  703E                     moveq.l    D0, 0x3E
  1514. 000011B6  A322                     syscall    NewHandleClear, flags=3
  1515. 000011B8  2B48 D6CE                move.l     [A5 - 0x2932], A0
  1516. 000011BC  2008                     move.l     D0, A0
  1517. 000011BE  6700 00A0                beq        +0xA2 /* 00001260 */
  1518. 000011C2  7008                     moveq.l    D0, 0x08
  1519. 000011C4  A322                     syscall    NewHandleClear, flags=3
  1520. 000011C6  2648                     movea.l    A3, A0
  1521. 000011C8  200B                     move.l     D0, A3
  1522. 000011CA  6700 0094                beq        +0x96 /* 00001260 */
  1523. 000011CE  206D D6CE                movea.l    A0, [A5 - 0x2932]
  1524. 000011D2  2050                     movea.l    A0, [A0]
  1525. 000011D4  4268 0004                clr.w      [A0 + 0x4]
  1526. 000011D8  206D D6CE                movea.l    A0, [A5 - 0x2932]
  1527. 000011DC  2050                     movea.l    A0, [A0]
  1528. 000011DE  214B 0006                move.l     [A0 + 0x6], A3
  1529. 000011E2  206D D6CE                movea.l    A0, [A5 - 0x2932]
  1530. 000011E6  2050                     movea.l    A0, [A0]
  1531. 000011E8  317C 0004 000A           move.w     [A0 + 0xA], 0x4
  1532. 000011EE  206D D6A6                movea.l    A0, [A5 - 0x295A]
  1533. 000011F2  226D D6CE                movea.l    A1, [A5 - 0x2932]
  1534. 000011F6  2251                     movea.l    A1, [A1]
  1535. 000011F8  2368 0002 0016           move.l     [A1 + 0x16], [A0 + 0x2]
  1536. 000011FE  206D D6CE                movea.l    A0, [A5 - 0x2932]
  1537. 00001202  2050                     movea.l    A0, [A0]
  1538. 00001204  216D D6B8 0022           move.l     [A0 + 0x22], [A5 - 0x2948]
  1539. 0000120A  216D D6BC 0026           move.l     [A0 + 0x26], [A5 - 0x2944]
  1540. 00001210  206D D6CE                movea.l    A0, [A5 - 0x2932]
  1541. 00001214  2050                     movea.l    A0, [A0]
  1542. 00001216  70FF                     moveq.l    D0, 0xFFFFFFFF
  1543. 00001218  2140 002A                move.l     [A0 + 0x2A], D0
  1544. 0000121C  2F2D D6CE                move.l     -[A7], [A5 - 0x2932]
  1545. 00001220  2F3C 0100 0000           move.l     -[A7], 0x1000000
  1546. 00001226  AA2D                     syscall    SetDeviceAttribute
  1547. 00001228  2F2D D6CE                move.l     -[A7], [A5 - 0x2932]
  1548. 0000122C  2F3C 0100 000E           move.l     -[A7], 0x100000E
  1549. 00001232  AA2D                     syscall    SetDeviceAttribute
  1550. 00001234  2F2D D6C8                move.l     -[A7], [A5 - 0x2938]
  1551. 00001238  206D D6CE                movea.l    A0, [A5 - 0x2932]
  1552. 0000123C  2050                     movea.l    A0, [A0]
  1553. 0000123E  2F28 0006                move.l     -[A7], [A0 + 0x6]
  1554. 00001242  3F3C 0004                move.w     -[A7], 0x4
  1555. 00001246  AA39                     syscall    MakeITable
  1556. 00001248  4267                     clr.w      -[A7]
  1557. 0000124A  AA40                     syscall    QDError
  1558. 0000124C  381F                     move.w     D4, [A7]+
  1559. 0000124E  4A44                     tst.w      D4
  1560. 00001250  660E                     bne        +0x10 /* 00001260 */
  1561. label00001252:
  1562. 00001252  4A2D D677                tst.b      [A5 - 0x2989]
  1563. 00001256  6704                     beq        +0x6 /* 0000125C */
  1564. 00001258  422D D6A1                clr.b      [A5 - 0x295F]
  1565. label0000125C:
  1566. 0000125C  7000                     moveq.l    D0, 0x00
  1567. 0000125E  600A                     bra        +0xC /* 0000126A */
  1568. label00001260:
  1569. 00001260  3F3C 03EC                move.w     -[A7], 0x3EC
  1570. 00001264  4EBA 1A14                jsr        [PC + 0x1A14 /* 00002C7A */]
  1571. 00001268  70FF                     moveq.l    D0, 0xFFFFFFFF
  1572. label0000126A:
  1573. 0000126A  4CEE 18F0 FFE0           movem.l    D4,D5,D6,D7,A3,A4, [A6 - 0x20]
  1574. 00001270  4E5E                     unlink     A6
  1575. 00001272  4E75                     rts
  1576. fn00001274:
  1577. 00001274  4E56 FFF4                link       A6, -0x000C
  1578. 00001278  48E7 0118                movem.l    -[A7], D7,A3,A4
  1579. 0000127C  3B7C 0190 DFB8           move.w     [A5 - 0x2048], 0x190
  1580. 00001282  3B7C 0028 DFBA           move.w     [A5 - 0x2046], 0x28 /* '(' */
  1581. 00001288  302D DFB8                move.w     D0, [A5 - 0x2048]
  1582. 0000128C  C1ED DFBA                muls.w     D0, [A5 - 0x2046]
  1583. 00001290  2B40 DFB0                move.l     [A5 - 0x2050], D0
  1584. 00001294  A11E                     syscall    NewPtr, flags=1
  1585. 00001296  2B48 DFB4                move.l     [A5 - 0x204C], A0
  1586. 0000129A  3E38 0220                move.w     D7, [0x00000220 /* MemErr */]
  1587. 0000129E  4A47                     tst.w      D7
  1588. 000012A0  6600 00AE                bne        +0xB0 /* 00001350 */
  1589. 000012A4  47ED CE6A                lea.l      A3, [A5 - 0x3196]
  1590. 000012A8  4267                     clr.w      -[A7]
  1591. 000012AA  486D CE6A                pea.l      [A5 - 0x3196]
  1592. 000012AE  3F2D D5D2                move.w     -[A7], [A5 - 0x2A2E]
  1593. 000012B2  4227                     clr.b      -[A7]
  1594. 000012B4  A9C4                     syscall    OpenRFPerm
  1595. 000012B6  3B5F D61A                move.w     [A5 - 0x29E6], [A7]+
  1596. 000012BA  4267                     clr.w      -[A7]
  1597. 000012BC  A9AF                     syscall    ResError
  1598. 000012BE  3E1F                     move.w     D7, [A7]+
  1599. 000012C0  4A47                     tst.w      D7
  1600. 000012C2  6600 00A4                bne        +0xA6 /* 00001368 */
  1601. 000012C6  42A7                     clr.l      -[A7]
  1602. 000012C8  2F3C 4C45 5653           move.l     -[A7], 0x4C455653 /* 'LEVS' */
  1603. 000012CE  4EBA 193A                jsr        [PC + 0x193A /* 00002C0A */]
  1604. 000012D2  2840                     movea.l    A4, D0
  1605. 000012D4  200C                     move.l     D0, A4
  1606. 000012D6  508F                     addq.l     A7, 8
  1607. 000012D8  6700 0082                beq        +0x84 /* 0000135C */
  1608. 000012DC  4878 0014                push.l     0x14
  1609. 000012E0  486D E012                pea.l      [A5 - 0x1FEE]
  1610. 000012E4  2F0C                     move.l     -[A7], A4
  1611. 000012E6  4EBA 1620                jsr        [PC + 0x1620 /* 00002908 */]
  1612. 000012EA  2E8C                     move.l     [A7], A4
  1613. 000012EC  4EBA 1966                jsr        [PC + 0x1966 /* 00002C54 */]
  1614. 000012F0  4A2D D69F                tst.b      [A5 - 0x2961]
  1615. 000012F4  4FEF 000C                lea.l      A7, [A7 + 0xC]
  1616. 000012F8  670A                     beq        +0xC /* 00001304 */
  1617. 000012FA  41ED CE72                lea.l      A0, [A5 - 0x318E]
  1618. 000012FE  2B48 D61C                move.l     [A5 - 0x29E4], A0
  1619. 00001302  6008                     bra        +0xA /* 0000130C */
  1620. label00001304:
  1621. 00001304  41ED CE7C                lea.l      A0, [A5 - 0x3184]
  1622. 00001308  2B48 D61C                move.l     [A5 - 0x29E4], A0
  1623. label0000130C:
  1624. 0000130C  266D D61C                movea.l    A3, [A5 - 0x29E4]
  1625. 00001310  4267                     clr.w      -[A7]
  1626. 00001312  2F2D D61C                move.l     -[A7], [A5 - 0x29E4]
  1627. 00001316  3F2D D5D2                move.w     -[A7], [A5 - 0x2A2E]
  1628. 0000131A  4227                     clr.b      -[A7]
  1629. 0000131C  A9C4                     syscall    OpenRFPerm
  1630. 0000131E  3B5F D620                move.w     [A5 - 0x29E0], [A7]+
  1631. 00001322  4267                     clr.w      -[A7]
  1632. 00001324  A9AF                     syscall    ResError
  1633. 00001326  3E1F                     move.w     D7, [A7]+
  1634. 00001328  4A47                     tst.w      D7
  1635. 0000132A  663C                     bne        +0x3E /* 00001368 */
  1636. 0000132C  47ED CE8A                lea.l      A3, [A5 - 0x3176]
  1637. 00001330  4267                     clr.w      -[A7]
  1638. 00001332  486D CE8A                pea.l      [A5 - 0x3176]
  1639. 00001336  3F2D D5D2                move.w     -[A7], [A5 - 0x2A2E]
  1640. 0000133A  4227                     clr.b      -[A7]
  1641. 0000133C  A9C4                     syscall    OpenRFPerm
  1642. 0000133E  3B5F D622                move.w     [A5 - 0x29DE], [A7]+
  1643. 00001342  4267                     clr.w      -[A7]
  1644. 00001344  A9AF                     syscall    ResError
  1645. 00001346  3E1F                     move.w     D7, [A7]+
  1646. 00001348  4A47                     tst.w      D7
  1647. 0000134A  661C                     bne        +0x1E /* 00001368 */
  1648. 0000134C  7000                     moveq.l    D0, 0x00
  1649. 0000134E  603A                     bra        +0x3C /* 0000138A */
  1650. label00001350:
  1651. 00001350  3F3C 03EC                move.w     -[A7], 0x3EC
  1652. 00001354  4EBA 1924                jsr        [PC + 0x1924 /* 00002C7A */]
  1653. 00001358  70FF                     moveq.l    D0, 0xFFFFFFFF
  1654. 0000135A  602E                     bra        +0x30 /* 0000138A */
  1655. label0000135C:
  1656. 0000135C  3F3C 03EA                move.w     -[A7], 0x3EA
  1657. 00001360  4EBA 1918                jsr        [PC + 0x1918 /* 00002C7A */]
  1658. 00001364  70FF                     moveq.l    D0, 0xFFFFFFFF
  1659. 00001366  6022                     bra        +0x24 /* 0000138A */
  1660. label00001368:
  1661. 00001368  3047                     movea.w    A0, D7
  1662. 0000136A  2F08                     move.l     -[A7], A0
  1663. 0000136C  486E FFF4                pea.l      [A6 - 0xC]
  1664. 00001370  4EBA 28EE                jsr        [PC + 0x28EE /* 00003C60 */]
  1665. 00001374  486E FFF4                pea.l      [A6 - 0xC]
  1666. 00001378  2F0B                     move.l     -[A7], A3
  1667. 0000137A  42A7                     clr.l      -[A7]
  1668. 0000137C  42A7                     clr.l      -[A7]
  1669. 0000137E  A98B                     syscall    ParamText
  1670. 00001380  3F3C 03ED                move.w     -[A7], 0x3ED
  1671. 00001384  4EBA 18F4                jsr        [PC + 0x18F4 /* 00002C7A */]
  1672. 00001388  70FF                     moveq.l    D0, 0xFFFFFFFF
  1673. label0000138A:
  1674. 0000138A  4CEE 1880 FFE8           movem.l    D7,A3,A4, [A6 - 0x18]
  1675. 00001390  4E5E                     unlink     A6
  1676. 00001392  4E75                     rts
  1677. fn00001394:
  1678. 00001394  4EBA 2054                jsr        [PC + 0x2054 /* 000033EA */]
  1679. 00001398  A850                     syscall    InitCursor
  1680. 0000139A  4AAD D648                tst.l      [A5 - 0x29B8]
  1681. 0000139E  6706                     beq        +0x8 /* 000013A6 */
  1682. 000013A0  2F2D D648                move.l     -[A7], [A5 - 0x29B8]
  1683. 000013A4  AA26                     syscall    DisposeCCursor/DisposCCursor
  1684. label000013A6:
  1685. 000013A6  4AAD D64C                tst.l      [A5 - 0x29B4]
  1686. 000013AA  6706                     beq        +0x8 /* 000013B2 */
  1687. 000013AC  2F2D D64C                move.l     -[A7], [A5 - 0x29B4]
  1688. 000013B0  AA26                     syscall    DisposeCCursor/DisposCCursor
  1689. label000013B2:
  1690. 000013B2  486D D5AA                pea.l      [A5 - 0x2A56]
  1691. 000013B6  A874                     syscall    GetPort
  1692. 000013B8  4AAD D6A6                tst.l      [A5 - 0x295A]
  1693. 000013BC  670C                     beq        +0xE /* 000013CA */
  1694. 000013BE  2F2D D6A6                move.l     -[A7], [A5 - 0x295A]
  1695. 000013C2  A873                     syscall    SetPort
  1696. 000013C4  486D D6B8                pea.l      [A5 - 0x2948]
  1697. 000013C8  A8A2                     syscall    PaintRect
  1698. label000013CA:
  1699. 000013CA  2F2D D5AA                move.l     -[A7], [A5 - 0x2A56]
  1700. 000013CE  A873                     syscall    SetPort
  1701. 000013D0  4EBA 17B6                jsr        [PC + 0x17B6 /* 00002B88 */]
  1702. 000013D4  2F3C 0000 FFFF           move.l     -[A7], 0xFFFF
  1703. 000013DA  201F                     move.l     D0, [A7]+
  1704. 000013DC  A032                     syscall    FlushEvents
  1705. 000013DE  4E75                     rts
  1706. fn000013E0:
  1707. 000013E0  4E56 FFFC                link       A6, -0x0004
  1708. 000013E4  2B6D D65A D662           move.l     [A5 - 0x299E], [A5 - 0x29A6]
  1709. 000013EA  486D D662                pea.l      [A5 - 0x299E]
  1710. 000013EE  A871                     syscall    GlobalToLocal
  1711. 000013F0  4227                     clr.b      -[A7]
  1712. 000013F2  2F2D D662                move.l     -[A7], [A5 - 0x299E]
  1713. 000013F6  486D D6B0                pea.l      [A5 - 0x2950]
  1714. 000013FA  A8AD                     syscall    PtInRect
  1715. 000013FC  1B5F D660                move.b     [A5 - 0x29A0], [A7]+
  1716. 00001400  422D D668                clr.b      [A5 - 0x2998]
  1717. 00001404  422D D669                clr.b      [A5 - 0x2997]
  1718. 00001408  422D D674                clr.b      [A5 - 0x298C]
  1719. 0000140C  082D 0001 D65E           btst.b     [A5 - 0x29A2], 0x1
  1720. 00001412  6704                     beq        +0x6 /* 00001418 */
  1721. 00001414  7001                     moveq.l    D0, 0x01
  1722. 00001416  6002                     bra        +0x4 /* 0000141A */
  1723. label00001418:
  1724. 00001418  7000                     moveq.l    D0, 0x00
  1725. label0000141A:
  1726. 0000141A  1B40 D677                move.b     [A5 - 0x2989], D0
  1727. 0000141E  082D 0002 D65E           btst.b     [A5 - 0x29A2], 0x2
  1728. 00001424  6704                     beq        +0x6 /* 0000142A */
  1729. 00001426  7001                     moveq.l    D0, 0x01
  1730. 00001428  6002                     bra        +0x4 /* 0000142C */
  1731. label0000142A:
  1732. 0000142A  7000                     moveq.l    D0, 0x00
  1733. label0000142C:
  1734. 0000142C  1B40 D678                move.b     [A5 - 0x2988], D0
  1735. 00001430  082D 0004 D65E           btst.b     [A5 - 0x29A2], 0x4
  1736. 00001436  6704                     beq        +0x6 /* 0000143C */
  1737. 00001438  7001                     moveq.l    D0, 0x01
  1738. 0000143A  6002                     bra        +0x4 /* 0000143E */
  1739. label0000143C:
  1740. 0000143C  7000                     moveq.l    D0, 0x00
  1741. label0000143E:
  1742. 0000143E  1B40 D679                move.b     [A5 - 0x2987], D0
  1743. 00001442  082D 0003 D65E           btst.b     [A5 - 0x29A2], 0x3
  1744. 00001448  6704                     beq        +0x6 /* 0000144E */
  1745. 0000144A  7001                     moveq.l    D0, 0x01
  1746. 0000144C  6002                     bra        +0x4 /* 00001450 */
  1747. label0000144E:
  1748. 0000144E  7000                     moveq.l    D0, 0x00
  1749. label00001450:
  1750. 00001450  1B40 D67A                move.b     [A5 - 0x2986], D0
  1751. 00001454  322D D650                move.w     D1, [A5 - 0x29B0]
  1752. 00001458  0C41 000F                cmpi.w     D1, 0xF
  1753. 0000145C  6200 01B6                bhi        +0x1B8 /* 00001614 */
  1754. 00001460  43FA 01C4                lea.l      A1, [PC + 0x1C4 /* 00001626, value 0xFE46FE64 */]
  1755. 00001464  D241                     add.w      D1, D1
  1756. 00001466  D2F1 1000                add.w      A1, [A1 + D1.w]
  1757. 0000146A  4ED1                     jmp        [A1]
  1758. 0000146C  4A2D D66B                tst.b      [A5 - 0x2995]
  1759. 00001470  670C                     beq        +0xE /* 0000147E */
  1760. 00001472  4227                     clr.b      -[A7]
  1761. 00001474  A973                     syscall    StillDown
  1762. 00001476  4A1F                     tst.b      [A7]+
  1763. 00001478  6704                     beq        +0x6 /* 0000147E */
  1764. 0000147A  4EBA 0318                jsr        [PC + 0x318 /* 00001794 */]
  1765. label0000147E:
  1766. 0000147E  7000                     moveq.l    D0, 0x00
  1767. 00001480  307C 000C                movea.w    A0, 0xC
  1768. 00001484  A02F                     syscall    PostEvent/PPostEvent
  1769. 00001486  6000 018C                bra        +0x18E /* 00001614 */
  1770. 0000148A  4267                     clr.w      -[A7]
  1771. 0000148C  2F2D D65A                move.l     -[A7], [A5 - 0x29A6]
  1772. 00001490  486E FFFC                pea.l      [A6 - 0x4]
  1773. 00001494  A92C                     syscall    FindWindow
  1774. 00001496  301F                     move.w     D0, [A7]+
  1775. 00001498  0C40 0006                cmpi.w     D0, 0x6
  1776. 0000149C  6200 0176                bhi        +0x178 /* 00001614 */
  1777. 000014A0  43FA 0176                lea.l      A1, [PC + 0x176 /* 00001618, value 0xFFFCFE94 */]
  1778. 000014A4  D040                     add.w      D0, D0
  1779. 000014A6  D2F1 0000                add.w      A1, [A1 + D0.w]
  1780. 000014AA  4ED1                     jmp        [A1]
  1781. 000014AC  42A7                     clr.l      -[A7]
  1782. 000014AE  2F2D D65A                move.l     -[A7], [A5 - 0x29A6]
  1783. 000014B2  A93D                     syscall    MenuSelect
  1784. 000014B4  4EBA 070A                jsr        [PC + 0x70A /* 00001BC0 */]
  1785. 000014B8  588F                     addq.l     A7, 4
  1786. 000014BA  6000 0158                bra        +0x15A /* 00001614 */
  1787. 000014BE  486D D650                pea.l      [A5 - 0x29B0]
  1788. 000014C2  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  1789. 000014C6  A9B3                     syscall    SystemClick
  1790. 000014C8  6000 014A                bra        +0x14C /* 00001614 */
  1791. 000014CC  1B7C 0001 D668           move.b     [A5 - 0x2998], 0x1
  1792. 000014D2  422D D669                clr.b      [A5 - 0x2997]
  1793. 000014D6  202D D656                move.l     D0, [A5 - 0x29AA]
  1794. 000014DA  90AD D670                sub.l      D0, [A5 - 0x2990]
  1795. 000014DE  B0B8 02F0                cmp.l      D0, [0x000002F0 /* DoubleTime */]
  1796. 000014E2  6436                     bcc        +0x38 /* 0000151A */
  1797. 000014E4  302D D66E                move.w     D0, [A5 - 0x2992]
  1798. 000014E8  906D D664                sub.w      D0, [A5 - 0x299C]
  1799. 000014EC  5B40                     subq.w     D0, 5
  1800. 000014EE  6C2A                     bge        +0x2C /* 0000151A */
  1801. 000014F0  302D D664                move.w     D0, [A5 - 0x299C]
  1802. 000014F4  906D D66E                sub.w      D0, [A5 - 0x2992]
  1803. 000014F8  5B40                     subq.w     D0, 5
  1804. 000014FA  6C1E                     bge        +0x20 /* 0000151A */
  1805. 000014FC  302D D66C                move.w     D0, [A5 - 0x2994]
  1806. 00001500  906D D662                sub.w      D0, [A5 - 0x299E]
  1807. 00001504  5B40                     subq.w     D0, 5
  1808. 00001506  6C12                     bge        +0x14 /* 0000151A */
  1809. 00001508  302D D662                move.w     D0, [A5 - 0x299E]
  1810. 0000150C  906D D66C                sub.w      D0, [A5 - 0x2994]
  1811. 00001510  5B40                     subq.w     D0, 5
  1812. 00001512  6C06                     bge        +0x8 /* 0000151A */
  1813. 00001514  1B7C 0001 D669           move.b     [A5 - 0x2997], 0x1
  1814. label0000151A:
  1815. 0000151A  2B6D D656 D670           move.l     [A5 - 0x2990], [A5 - 0x29AA]
  1816. 00001520  2B6D D662 D66C           move.l     [A5 - 0x2994], [A5 - 0x299E]
  1817. 00001526  4EBA 026C                jsr        [PC + 0x26C /* 00001794 */]
  1818. 0000152A  6000 00E8                bra        +0xEA /* 00001614 */
  1819. 0000152E  422D D668                clr.b      [A5 - 0x2998]
  1820. 00001532  422D D669                clr.b      [A5 - 0x2997]
  1821. 00001536  422D D66B                clr.b      [A5 - 0x2995]
  1822. 0000153A  6000 00D8                bra        +0xDA /* 00001614 */
  1823. 0000153E  70FF                     moveq.l    D0, 0xFFFFFFFF
  1824. 00001540  C02D D655                and.b      D0, [A5 - 0x29AB]
  1825. 00001544  1B40 D676                move.b     [A5 - 0x298A], D0
  1826. 00001548  082D 0000 D65E           btst.b     [A5 - 0x29A2], 0x0
  1827. 0000154E  6726                     beq        +0x28 /* 00001576 */
  1828. 00001550  0C2D 0020 D676           cmpi.b     [A5 - 0x298A], 0x20 /* ' ' */
  1829. 00001556  6608                     bne        +0xA /* 00001560 */
  1830. 00001558  4EBA 162E                jsr        [PC + 0x162E /* 00002B88 */]
  1831. 0000155C  6000 00B6                bra        +0xB8 /* 00001614 */
  1832. label00001560:
  1833. 00001560  42A7                     clr.l      -[A7]
  1834. 00001562  102D D676                move.b     D0, [A5 - 0x298A]
  1835. 00001566  4880                     ext.w      D0
  1836. 00001568  3F00                     move.w     -[A7], D0
  1837. 0000156A  A93E                     syscall    MenuKey
  1838. 0000156C  4EBA 0652                jsr        [PC + 0x652 /* 00001BC0 */]
  1839. 00001570  588F                     addq.l     A7, 4
  1840. 00001572  6000 00A0                bra        +0xA2 /* 00001614 */
  1841. label00001576:
  1842. 00001576  1B7C 0001 D674           move.b     [A5 - 0x298C], 0x1
  1843. 0000157C  422D D675                clr.b      [A5 - 0x298B]
  1844. 00001580  4EBA 050A                jsr        [PC + 0x50A /* 00001A8C */]
  1845. 00001584  6000 008E                bra        +0x90 /* 00001614 */
  1846. 00001588  422D D674                clr.b      [A5 - 0x298C]
  1847. 0000158C  422D D675                clr.b      [A5 - 0x298B]
  1848. 00001590  6000 0082                bra        +0x84 /* 00001614 */
  1849. 00001594  70FF                     moveq.l    D0, 0xFFFFFFFF
  1850. 00001596  C02D D655                and.b      D0, [A5 - 0x29AB]
  1851. 0000159A  1B40 D676                move.b     [A5 - 0x298A], D0
  1852. 0000159E  1B7C 0001 D674           move.b     [A5 - 0x298C], 0x1
  1853. 000015A4  1B7C 0001 D675           move.b     [A5 - 0x298B], 0x1
  1854. 000015AA  4EBA 04E0                jsr        [PC + 0x4E0 /* 00001A8C */]
  1855. 000015AE  6064                     bra        +0x66 /* 00001614 */
  1856. 000015B0  4A2D CE61                tst.b      [A5 - 0x319F]
  1857. 000015B4  670C                     beq        +0xE /* 000015C2 */
  1858. 000015B6  2F2D D652                move.l     -[A7], [A5 - 0x29AE]
  1859. 000015BA  4EBA 010C                jsr        [PC + 0x10C /* 000016C8 */]
  1860. 000015BE  588F                     addq.l     A7, 4
  1861. 000015C0  6052                     bra        +0x54 /* 00001614 */
  1862. label000015C2:
  1863. 000015C2  2F2D D652                move.l     -[A7], [A5 - 0x29AE]
  1864. 000015C6  4EBA 019E                jsr        [PC + 0x19E /* 00001766 */]
  1865. 000015CA  588F                     addq.l     A7, 4
  1866. 000015CC  6046                     bra        +0x48 /* 00001614 */
  1867. 000015CE  082D 0000 D65F           btst.b     [A5 - 0x29A1], 0x0
  1868. 000015D4  670C                     beq        +0xE /* 000015E2 */
  1869. 000015D6  2F2D D652                move.l     -[A7], [A5 - 0x29AE]
  1870. 000015DA  4EBA 006A                jsr        [PC + 0x6A /* 00001646 */]
  1871. 000015DE  588F                     addq.l     A7, 4
  1872. 000015E0  6032                     bra        +0x34 /* 00001614 */
  1873. label000015E2:
  1874. 000015E2  2F2D D652                move.l     -[A7], [A5 - 0x29AE]
  1875. 000015E6  4EBA 00A4                jsr        [PC + 0xA4 /* 0000168C */]
  1876. 000015EA  588F                     addq.l     A7, 4
  1877. 000015EC  6026                     bra        +0x28 /* 00001614 */
  1878. 000015EE  0C2D 0001 D652           cmpi.b     [A5 - 0x29AE], 0x1
  1879. 000015F4  661E                     bne        +0x20 /* 00001614 */
  1880. 000015F6  082D 0000 D655           btst.b     [A5 - 0x29AB], 0x0
  1881. 000015FC  670C                     beq        +0xE /* 0000160A */
  1882. 000015FE  42A7                     clr.l      -[A7]
  1883. 00001600  A924                     syscall    FrontWindow
  1884. 00001602  4EBA 0042                jsr        [PC + 0x42 /* 00001646 */]
  1885. 00001606  588F                     addq.l     A7, 4
  1886. 00001608  600A                     bra        +0xC /* 00001614 */
  1887. label0000160A:
  1888. 0000160A  42A7                     clr.l      -[A7]
  1889. 0000160C  A924                     syscall    FrontWindow
  1890. 0000160E  4EBA 007C                jsr        [PC + 0x7C /* 0000168C */]
  1891. 00001612  588F                     addq.l     A7, 4
  1892. label00001614:
  1893. 00001614  4E5E                     unlink     A6
  1894. 00001616  4E75                     rts
  1895. 00001618  FFFC                     .invalid   <<F/7/7>>
  1896. 0000161A  FE94 FEA6                .extension 0xE94 <<F/2-3/7>> // unimplemented
  1897. 0000161E  FEB4 FFFC                .extension 0xEB4 <<F/2-3/7>> // unimplemented
  1898. 00001622  FFFC                     .invalid   <<F/7/7>>
  1899. 00001624  FFFC                     .invalid   <<F/7/7>>
  1900. 00001626  FE46 FE64                .extension 0xE46 <<F/1/7>>, 0xFE64 // unimplemented
  1901. 0000162A  FF08                     .extension 0xF08 <<F/4-5/7>> // unimplemented
  1902. 0000162C  FF18                     .extension 0xF18 <<F/4-5/7>> // unimplemented
  1903. 0000162E  FF62                     .extension 0xF62 <<F/4-5/7>> // unimplemented
  1904. 00001630  FF6E                     .extension 0xF6E <<F/4-5/7>> // unimplemented
  1905. 00001632  FF8A                     .invalid   <<F/6/7>>
  1906. 00001634  FFEE                     .invalid   <<F/7/7>>
  1907. 00001636  FFA8                     .invalid   <<F/6/7>>
  1908. 00001638  FFEE                     .invalid   <<F/7/7>>
  1909. 0000163A  FFEE                     .invalid   <<F/7/7>>
  1910. 0000163C  FFEE                     .invalid   <<F/7/7>>
  1911. 0000163E  FFEE                     .invalid   <<F/7/7>>
  1912. 00001640  FFEE                     .invalid   <<F/7/7>>
  1913. 00001642  FFEE                     .invalid   <<F/7/7>>
  1914. 00001644  FFC8                     .invalid   <<F/7/7>>
  1915. fn00001646:
  1916. 00001646  4E56 0000                link       A6, 0
  1917. 0000164A  202E 0008                move.l     D0, [A6 + 0x8]
  1918. 0000164E  B0AD D6A6                cmp.l      D0, [A5 - 0x295A]
  1919. 00001652  6634                     bne        +0x36 /* 00001688 */
  1920. 00001654  2F2D D634                move.l     -[A7], [A5 - 0x29CC]
  1921. 00001658  4267                     clr.w      -[A7]
  1922. 0000165A  A93A                     syscall    DisableItem
  1923. 0000165C  A937                     syscall    DrawMenuBar
  1924. 0000165E  4EBA 14AE                jsr        [PC + 0x14AE /* 00002B0E */]
  1925. 00001662  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  1926. 00001666  A873                     syscall    SetPort
  1927. 00001668  4A2D D69F                tst.b      [A5 - 0x2961]
  1928. 0000166C  670A                     beq        +0xC /* 00001678 */
  1929. 0000166E  4A2D CE66                tst.b      [A5 - 0x319A]
  1930. 00001672  6604                     bne        +0x6 /* 00001678 */
  1931. 00001674  4EBA 17B6                jsr        [PC + 0x17B6 /* 00002E2C */]
  1932. label00001678:
  1933. 00001678  486D D6B8                pea.l      [A5 - 0x2948]
  1934. 0000167C  A928                     syscall    InvalRect
  1935. 0000167E  4EBA 1FA6                jsr        [PC + 0x1FA6 /* 00003626 */]
  1936. 00001682  1B7C 0001 CE61           move.b     [A5 - 0x319F], 0x1
  1937. label00001688:
  1938. 00001688  4E5E                     unlink     A6
  1939. 0000168A  4E75                     rts
  1940. fn0000168C:
  1941. 0000168C  4E56 0000                link       A6, 0
  1942. 00001690  202E 0008                move.l     D0, [A6 + 0x8]
  1943. 00001694  B0AD D6A6                cmp.l      D0, [A5 - 0x295A]
  1944. 00001698  662A                     bne        +0x2C /* 000016C4 */
  1945. 0000169A  4A2D D69F                tst.b      [A5 - 0x2961]
  1946. 0000169E  670A                     beq        +0xC /* 000016AA */
  1947. 000016A0  4A2D CE66                tst.b      [A5 - 0x319A]
  1948. 000016A4  6604                     bne        +0x6 /* 000016AA */
  1949. 000016A6  4EBA 17CE                jsr        [PC + 0x17CE /* 00002E76 */]
  1950. label000016AA:
  1951. 000016AA  4EBA 1F4C                jsr        [PC + 0x1F4C /* 000035F8 */]
  1952. 000016AE  4EBA 14D8                jsr        [PC + 0x14D8 /* 00002B88 */]
  1953. 000016B2  2F2D D634                move.l     -[A7], [A5 - 0x29CC]
  1954. 000016B6  4267                     clr.w      -[A7]
  1955. 000016B8  A939                     syscall    EnableItem
  1956. 000016BA  A937                     syscall    DrawMenuBar
  1957. 000016BC  422D CE61                clr.b      [A5 - 0x319F]
  1958. 000016C0  422D CE62                clr.b      [A5 - 0x319E]
  1959. label000016C4:
  1960. 000016C4  4E5E                     unlink     A6
  1961. 000016C6  4E75                     rts
  1962. fn000016C8:
  1963. 000016C8  4E56 0000                link       A6, 0
  1964. 000016CC  48E7 0718                movem.l    -[A7], D5,D6,D7,A3,A4
  1965. 000016D0  266E 0008                movea.l    A3, [A6 + 0x8]
  1966. 000016D4  4A2D D69F                tst.b      [A5 - 0x2961]
  1967. 000016D8  6760                     beq        +0x62 /* 0000173A */
  1968. 000016DA  206D D696                movea.l    A0, [A5 - 0x296A]
  1969. 000016DE  2050                     movea.l    A0, [A0]
  1970. 000016E0  2E10                     move.l     D7, [A0]
  1971. 000016E2  BEAD D69A                cmp.l      D7, [A5 - 0x2966]
  1972. 000016E6  6752                     beq        +0x54 /* 0000173A */
  1973. 000016E8  7CFF                     moveq.l    D6, 0xFFFFFFFF
  1974. 000016EA  206D D692                movea.l    A0, [A5 - 0x296E]
  1975. 000016EE  2850                     movea.l    A4, [A0]
  1976. 000016F0  3A2C 001E                move.w     D5, [A4 + 0x1E]
  1977. 000016F4  4A45                     tst.w      D5
  1978. 000016F6  6706                     beq        +0x8 /* 000016FE */
  1979. 000016F8  0C45 0010                cmpi.w     D5, 0x10
  1980. 000016FC  6608                     bne        +0xA /* 00001706 */
  1981. label000016FE:
  1982. 000016FE  3C2C 0024                move.w     D6, [A4 + 0x24]
  1983. 00001702  CDEC 0022                muls.w     D6, [A4 + 0x22]
  1984. label00001706:
  1985. 00001706  BC6D D67C                cmp.w      D6, [A5 - 0x2984]
  1986. 0000170A  6610                     bne        +0x12 /* 0000171C */
  1987. 0000170C  4A2D CE66                tst.b      [A5 - 0x319A]
  1988. 00001710  6724                     beq        +0x26 /* 00001736 */
  1989. 00001712  4EBA 1718                jsr        [PC + 0x1718 /* 00002E2C */]
  1990. 00001716  422D CE66                clr.b      [A5 - 0x319A]
  1991. 0000171A  601A                     bra        +0x1C /* 00001736 */
  1992. label0000171C:
  1993. 0000171C  4A2D CE66                tst.b      [A5 - 0x319A]
  1994. 00001720  6614                     bne        +0x16 /* 00001736 */
  1995. 00001722  3F3C 03E9                move.w     -[A7], 0x3E9
  1996. 00001726  4EBA 1552                jsr        [PC + 0x1552 /* 00002C7A */]
  1997. 0000172A  4EBA 174A                jsr        [PC + 0x174A /* 00002E76 */]
  1998. 0000172E  1B7C 0001 CE66           move.b     [A5 - 0x319A], 0x1
  1999. 00001734  548F                     addq.l     A7, 2
  2000. label00001736:
  2001. 00001736  2B47 D69A                move.l     [A5 - 0x2966], D7
  2002. label0000173A:
  2003. 0000173A  2F0B                     move.l     -[A7], A3
  2004. 0000173C  A922                     syscall    BeginUpdate
  2005. 0000173E  B7ED D6A6                cmpa.l     A3, [A5 - 0x295A]
  2006. 00001742  6610                     bne        +0x12 /* 00001754 */
  2007. 00001744  2F2D D6C0                move.l     -[A7], [A5 - 0x2940]
  2008. 00001748  A8D3                     syscall    PaintRgn
  2009. 0000174A  486D D6B0                pea.l      [A5 - 0x2950]
  2010. 0000174E  4EBA 195E                jsr        [PC + 0x195E /* 000030AE */]
  2011. 00001752  588F                     addq.l     A7, 4
  2012. label00001754:
  2013. 00001754  2F0B                     move.l     -[A7], A3
  2014. 00001756  A923                     syscall    EndUpdate
  2015. 00001758  1B7C 0001 CE62           move.b     [A5 - 0x319E], 0x1
  2016. 0000175E  4CDF 18E0                movem.l    D5,D6,D7,A3,A4, [A7]+
  2017. 00001762  4E5E                     unlink     A6
  2018. 00001764  4E75                     rts
  2019. fn00001766:
  2020. 00001766  4E56 FFFC                link       A6, -0x0004
  2021. 0000176A  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  2022. 0000176E  A922                     syscall    BeginUpdate
  2023. 00001770  202E 0008                move.l     D0, [A6 + 0x8]
  2024. 00001774  B0AD D6A6                cmp.l      D0, [A5 - 0x295A]
  2025. 00001778  6610                     bne        +0x12 /* 0000178A */
  2026. 0000177A  2F2D D6C0                move.l     -[A7], [A5 - 0x2940]
  2027. 0000177E  A8D3                     syscall    PaintRgn
  2028. 00001780  486D D6B0                pea.l      [A5 - 0x2950]
  2029. 00001784  4EBA 1928                jsr        [PC + 0x1928 /* 000030AE */]
  2030. 00001788  588F                     addq.l     A7, 4
  2031. label0000178A:
  2032. 0000178A  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  2033. 0000178E  A923                     syscall    EndUpdate
  2034. 00001790  4E5E                     unlink     A6
  2035. 00001792  4E75                     rts
  2036. fn00001794:
  2037. 00001794  302D CFDC                move.w     D0, [A5 - 0x3024]
  2038. 00001798  6B00 02F0                bmi        +0x2F2 /* 00001A8A */
  2039. 0000179C  5B40                     subq.w     D0, 5
  2040. 0000179E  6700 00EE                beq        +0xF0 /* 0000188E */
  2041. 000017A2  6A00 02E6                bpl        +0x2E8 /* 00001A8A */
  2042. 000017A6  5640                     addq.w     D0, 3
  2043. 000017A8  6704                     beq        +0x6 /* 000017AE */
  2044. 000017AA  6000 02DE                bra        +0x2E0 /* 00001A8A */
  2045. label000017AE:
  2046. 000017AE  4227                     clr.b      -[A7]
  2047. 000017B0  2F2D D662                move.l     -[A7], [A5 - 0x299E]
  2048. 000017B4  486D D84C                pea.l      [A5 - 0x27B4]
  2049. 000017B8  A8AD                     syscall    PtInRect
  2050. 000017BA  4A1F                     tst.b      [A7]+
  2051. 000017BC  6708                     beq        +0xA /* 000017C6 */
  2052. 000017BE  4EBA 05BA                jsr        [PC + 0x5BA /* 00001D7A */]
  2053. 000017C2  6000 02C6                bra        +0x2C8 /* 00001A8A */
  2054. label000017C6:
  2055. 000017C6  4227                     clr.b      -[A7]
  2056. 000017C8  2F2D D662                move.l     -[A7], [A5 - 0x299E]
  2057. 000017CC  486D D854                pea.l      [A5 - 0x27AC]
  2058. 000017D0  A8AD                     syscall    PtInRect
  2059. 000017D2  4A1F                     tst.b      [A7]+
  2060. 000017D4  6708                     beq        +0xA /* 000017DE */
  2061. 000017D6  4EBA 05E2                jsr        [PC + 0x5E2 /* 00001DBA */]
  2062. 000017DA  6000 02AE                bra        +0x2B0 /* 00001A8A */
  2063. label000017DE:
  2064. 000017DE  4227                     clr.b      -[A7]
  2065. 000017E0  2F2D D662                move.l     -[A7], [A5 - 0x299E]
  2066. 000017E4  486D D85C                pea.l      [A5 - 0x27A4]
  2067. 000017E8  A8AD                     syscall    PtInRect
  2068. 000017EA  4A1F                     tst.b      [A7]+
  2069. 000017EC  674C                     beq        +0x4E /* 0000183A */
  2070. 000017EE  4A2D DF1B                tst.b      [A5 - 0x20E5]
  2071. 000017F2  6628                     bne        +0x2A /* 0000181C */
  2072. 000017F4  4A2D DF1C                tst.b      [A5 - 0x20E4]
  2073. 000017F8  6616                     bne        +0x18 /* 00001810 */
  2074. 000017FA  1F3C 0001                move.b     -[A7], 0x1
  2075. 000017FE  4EBA 07C4                jsr        [PC + 0x7C4 /* 00001FC4 */]
  2076. 00001802  1EBC 0001                move.b     [A7], 0x1
  2077. 00001806  4EBA 080A                jsr        [PC + 0x80A /* 00002012 */]
  2078. 0000180A  548F                     addq.l     A7, 2
  2079. 0000180C  6000 027C                bra        +0x27E /* 00001A8A */
  2080. label00001810:
  2081. 00001810  4227                     clr.b      -[A7]
  2082. 00001812  4EBA 07FE                jsr        [PC + 0x7FE /* 00002012 */]
  2083. 00001816  548F                     addq.l     A7, 2
  2084. 00001818  6000 0270                bra        +0x272 /* 00001A8A */
  2085. label0000181C:
  2086. 0000181C  4A2D DF1C                tst.b      [A5 - 0x20E4]
  2087. 00001820  660C                     bne        +0xE /* 0000182E */
  2088. 00001822  4227                     clr.b      -[A7]
  2089. 00001824  4EBA 079E                jsr        [PC + 0x79E /* 00001FC4 */]
  2090. 00001828  548F                     addq.l     A7, 2
  2091. 0000182A  6000 025E                bra        +0x260 /* 00001A8A */
  2092. label0000182E:
  2093. 0000182E  4227                     clr.b      -[A7]
  2094. 00001830  4EBA 07E0                jsr        [PC + 0x7E0 /* 00002012 */]
  2095. 00001834  548F                     addq.l     A7, 2
  2096. 00001836  6000 0252                bra        +0x254 /* 00001A8A */
  2097. label0000183A:
  2098. 0000183A  4227                     clr.b      -[A7]
  2099. 0000183C  2F2D D662                move.l     -[A7], [A5 - 0x299E]
  2100. 00001840  486D D864                pea.l      [A5 - 0x279C]
  2101. 00001844  A8AD                     syscall    PtInRect
  2102. 00001846  4A1F                     tst.b      [A7]+
  2103. 00001848  6700 0240                beq        +0x242 /* 00001A8A */
  2104. 0000184C  4227                     clr.b      -[A7]
  2105. 0000184E  2F2D D662                move.l     -[A7], [A5 - 0x299E]
  2106. 00001852  486D D86C                pea.l      [A5 - 0x2794]
  2107. 00001856  A8AD                     syscall    PtInRect
  2108. 00001858  4A1F                     tst.b      [A7]+
  2109. 0000185A  670E                     beq        +0x10 /* 0000186A */
  2110. 0000185C  0C6D 0003 DFF2           cmpi.w     [A5 - 0x200E], 0x3
  2111. 00001862  6C20                     bge        +0x22 /* 00001884 */
  2112. 00001864  526D DFF2                addq.w     [A5 - 0x200E], 1
  2113. 00001868  601A                     bra        +0x1C /* 00001884 */
  2114. label0000186A:
  2115. 0000186A  4227                     clr.b      -[A7]
  2116. 0000186C  2F2D D662                move.l     -[A7], [A5 - 0x299E]
  2117. 00001870  486D D874                pea.l      [A5 - 0x278C]
  2118. 00001874  A8AD                     syscall    PtInRect
  2119. 00001876  4A1F                     tst.b      [A7]+
  2120. 00001878  670A                     beq        +0xC /* 00001884 */
  2121. 0000187A  4A6D DFF2                tst.w      [A5 - 0x200E]
  2122. 0000187E  6F04                     ble        +0x6 /* 00001884 */
  2123. 00001880  536D DFF2                subq.w     [A5 - 0x200E], 1
  2124. label00001884:
  2125. 00001884  3B6D DFF2 DFC2           move.w     [A5 - 0x203E], [A5 - 0x200E]
  2126. 0000188A  6000 01FE                bra        +0x200 /* 00001A8A */
  2127. label0000188E:
  2128. 0000188E  4227                     clr.b      -[A7]
  2129. 00001890  2F2D D662                move.l     -[A7], [A5 - 0x299E]
  2130. 00001894  486D D6D2                pea.l      [A5 - 0x292E]
  2131. 00001898  A8AD                     syscall    PtInRect
  2132. 0000189A  4A1F                     tst.b      [A7]+
  2133. 0000189C  6708                     beq        +0xA /* 000018A6 */
  2134. 0000189E  4EAD 0272                jsr        [A5 + 0x272 /* export_74 */]
  2135. 000018A2  6000 01E6                bra        +0x1E8 /* 00001A8A */
  2136. label000018A6:
  2137. 000018A6  4227                     clr.b      -[A7]
  2138. 000018A8  2F2D D662                move.l     -[A7], [A5 - 0x299E]
  2139. 000018AC  486D D6E2                pea.l      [A5 - 0x291E]
  2140. 000018B0  A8AD                     syscall    PtInRect
  2141. 000018B2  4A1F                     tst.b      [A7]+
  2142. 000018B4  6700 01D4                beq        +0x1D6 /* 00001A8A */
  2143. 000018B8  4227                     clr.b      -[A7]
  2144. 000018BA  2F2D D662                move.l     -[A7], [A5 - 0x299E]
  2145. 000018BE  486D D7A2                pea.l      [A5 - 0x285E]
  2146. 000018C2  A8AD                     syscall    PtInRect
  2147. 000018C4  4A1F                     tst.b      [A7]+
  2148. 000018C6  6724                     beq        +0x26 /* 000018EC */
  2149. 000018C8  302D D662                move.w     D0, [A5 - 0x299E]
  2150. 000018CC  906D D7A2                sub.w      D0, [A5 - 0x285E]
  2151. 000018D0  3F00                     move.w     -[A7], D0
  2152. 000018D2  302D D664                move.w     D0, [A5 - 0x299C]
  2153. 000018D6  906D D7A4                sub.w      D0, [A5 - 0x285C]
  2154. 000018DA  3F00                     move.w     -[A7], D0
  2155. 000018DC  4EAD 027A                jsr        [A5 + 0x27A /* export_75 */]
  2156. 000018E0  1B7C 0001 D66B           move.b     [A5 - 0x2995], 0x1
  2157. 000018E6  588F                     addq.l     A7, 4
  2158. 000018E8  6000 01A0                bra        +0x1A2 /* 00001A8A */
  2159. label000018EC:
  2160. 000018EC  4227                     clr.b      -[A7]
  2161. 000018EE  2F2D D662                move.l     -[A7], [A5 - 0x299E]
  2162. 000018F2  486D D6EA                pea.l      [A5 - 0x2916]
  2163. 000018F6  A8AD                     syscall    PtInRect
  2164. 000018F8  4A1F                     tst.b      [A7]+
  2165. 000018FA  6714                     beq        +0x16 /* 00001910 */
  2166. 000018FC  3F3C FFFF                move.w     -[A7], 0xFFFF
  2167. 00001900  4EAD 0282                jsr        [A5 + 0x282 /* export_76 */]
  2168. 00001904  1B7C 0001 D66B           move.b     [A5 - 0x2995], 0x1
  2169. 0000190A  548F                     addq.l     A7, 2
  2170. 0000190C  6000 017C                bra        +0x17E /* 00001A8A */
  2171. label00001910:
  2172. 00001910  4227                     clr.b      -[A7]
  2173. 00001912  2F2D D662                move.l     -[A7], [A5 - 0x299E]
  2174. 00001916  486D D6F2                pea.l      [A5 - 0x290E]
  2175. 0000191A  A8AD                     syscall    PtInRect
  2176. 0000191C  4A1F                     tst.b      [A7]+
  2177. 0000191E  6714                     beq        +0x16 /* 00001934 */
  2178. 00001920  3F3C 0001                move.w     -[A7], 0x1
  2179. 00001924  4EAD 0282                jsr        [A5 + 0x282 /* export_76 */]
  2180. 00001928  1B7C 0001 D66B           move.b     [A5 - 0x2995], 0x1
  2181. 0000192E  548F                     addq.l     A7, 2
  2182. 00001930  6000 0158                bra        +0x15A /* 00001A8A */
  2183. label00001934:
  2184. 00001934  4227                     clr.b      -[A7]
  2185. 00001936  2F2D D662                move.l     -[A7], [A5 - 0x299E]
  2186. 0000193A  486D D6FA                pea.l      [A5 - 0x2906]
  2187. 0000193E  A8AD                     syscall    PtInRect
  2188. 00001940  4A1F                     tst.b      [A7]+
  2189. 00001942  670C                     beq        +0xE /* 00001950 */
  2190. 00001944  4267                     clr.w      -[A7]
  2191. 00001946  4EAD 029A                jsr        [A5 + 0x29A /* export_79 */]
  2192. 0000194A  548F                     addq.l     A7, 2
  2193. 0000194C  6000 013C                bra        +0x13E /* 00001A8A */
  2194. label00001950:
  2195. 00001950  4227                     clr.b      -[A7]
  2196. 00001952  2F2D D662                move.l     -[A7], [A5 - 0x299E]
  2197. 00001956  486D D702                pea.l      [A5 - 0x28FE]
  2198. 0000195A  A8AD                     syscall    PtInRect
  2199. 0000195C  4A1F                     tst.b      [A7]+
  2200. 0000195E  670E                     beq        +0x10 /* 0000196E */
  2201. 00001960  3F3C 0001                move.w     -[A7], 0x1
  2202. 00001964  4EAD 029A                jsr        [A5 + 0x29A /* export_79 */]
  2203. 00001968  548F                     addq.l     A7, 2
  2204. 0000196A  6000 011E                bra        +0x120 /* 00001A8A */
  2205. label0000196E:
  2206. 0000196E  4227                     clr.b      -[A7]
  2207. 00001970  2F2D D662                move.l     -[A7], [A5 - 0x299E]
  2208. 00001974  486D D70A                pea.l      [A5 - 0x28F6]
  2209. 00001978  A8AD                     syscall    PtInRect
  2210. 0000197A  4A1F                     tst.b      [A7]+
  2211. 0000197C  670E                     beq        +0x10 /* 0000198C */
  2212. 0000197E  3F3C 0002                move.w     -[A7], 0x2
  2213. 00001982  4EAD 029A                jsr        [A5 + 0x29A /* export_79 */]
  2214. 00001986  548F                     addq.l     A7, 2
  2215. 00001988  6000 0100                bra        +0x102 /* 00001A8A */
  2216. label0000198C:
  2217. 0000198C  4227                     clr.b      -[A7]
  2218. 0000198E  2F2D D662                move.l     -[A7], [A5 - 0x299E]
  2219. 00001992  486D D712                pea.l      [A5 - 0x28EE]
  2220. 00001996  A8AD                     syscall    PtInRect
  2221. 00001998  4A1F                     tst.b      [A7]+
  2222. 0000199A  670E                     beq        +0x10 /* 000019AA */
  2223. 0000199C  3F3C 0003                move.w     -[A7], 0x3
  2224. 000019A0  4EAD 029A                jsr        [A5 + 0x29A /* export_79 */]
  2225. 000019A4  548F                     addq.l     A7, 2
  2226. 000019A6  6000 00E2                bra        +0xE4 /* 00001A8A */
  2227. label000019AA:
  2228. 000019AA  4227                     clr.b      -[A7]
  2229. 000019AC  2F2D D662                move.l     -[A7], [A5 - 0x299E]
  2230. 000019B0  486D D71A                pea.l      [A5 - 0x28E6]
  2231. 000019B4  A8AD                     syscall    PtInRect
  2232. 000019B6  4A1F                     tst.b      [A7]+
  2233. 000019B8  670E                     beq        +0x10 /* 000019C8 */
  2234. 000019BA  3F3C 0004                move.w     -[A7], 0x4
  2235. 000019BE  4EAD 029A                jsr        [A5 + 0x29A /* export_79 */]
  2236. 000019C2  548F                     addq.l     A7, 2
  2237. 000019C4  6000 00C4                bra        +0xC6 /* 00001A8A */
  2238. label000019C8:
  2239. 000019C8  4227                     clr.b      -[A7]
  2240. 000019CA  2F2D D662                move.l     -[A7], [A5 - 0x299E]
  2241. 000019CE  486D D722                pea.l      [A5 - 0x28DE]
  2242. 000019D2  A8AD                     syscall    PtInRect
  2243. 000019D4  4A1F                     tst.b      [A7]+
  2244. 000019D6  670E                     beq        +0x10 /* 000019E6 */
  2245. 000019D8  3F3C 0005                move.w     -[A7], 0x5
  2246. 000019DC  4EAD 029A                jsr        [A5 + 0x29A /* export_79 */]
  2247. 000019E0  548F                     addq.l     A7, 2
  2248. 000019E2  6000 00A6                bra        +0xA8 /* 00001A8A */
  2249. label000019E6:
  2250. 000019E6  4227                     clr.b      -[A7]
  2251. 000019E8  2F2D D662                move.l     -[A7], [A5 - 0x299E]
  2252. 000019EC  486D D72A                pea.l      [A5 - 0x28D6]
  2253. 000019F0  A8AD                     syscall    PtInRect
  2254. 000019F2  4A1F                     tst.b      [A7]+
  2255. 000019F4  670E                     beq        +0x10 /* 00001A04 */
  2256. 000019F6  3F3C 0006                move.w     -[A7], 0x6
  2257. 000019FA  4EAD 029A                jsr        [A5 + 0x29A /* export_79 */]
  2258. 000019FE  548F                     addq.l     A7, 2
  2259. 00001A00  6000 0088                bra        +0x8A /* 00001A8A */
  2260. label00001A04:
  2261. 00001A04  4227                     clr.b      -[A7]
  2262. 00001A06  2F2D D662                move.l     -[A7], [A5 - 0x299E]
  2263. 00001A0A  486D D732                pea.l      [A5 - 0x28CE]
  2264. 00001A0E  A8AD                     syscall    PtInRect
  2265. 00001A10  4A1F                     tst.b      [A7]+
  2266. 00001A12  670C                     beq        +0xE /* 00001A20 */
  2267. 00001A14  3F3C 0007                move.w     -[A7], 0x7
  2268. 00001A18  4EAD 029A                jsr        [A5 + 0x29A /* export_79 */]
  2269. 00001A1C  548F                     addq.l     A7, 2
  2270. 00001A1E  606A                     bra        +0x6C /* 00001A8A */
  2271. label00001A20:
  2272. 00001A20  4227                     clr.b      -[A7]
  2273. 00001A22  2F2D D662                move.l     -[A7], [A5 - 0x299E]
  2274. 00001A26  486D D73A                pea.l      [A5 - 0x28C6]
  2275. 00001A2A  A8AD                     syscall    PtInRect
  2276. 00001A2C  4A1F                     tst.b      [A7]+
  2277. 00001A2E  6712                     beq        +0x14 /* 00001A42 */
  2278. 00001A30  4A2D DF1A                tst.b      [A5 - 0x20E6]
  2279. 00001A34  57C0                     seq        D0
  2280. 00001A36  4400                     neg.b      D0
  2281. 00001A38  1F00                     move.b     -[A7], D0
  2282. 00001A3A  4EBA 056C                jsr        [PC + 0x56C /* 00001FA8 */]
  2283. 00001A3E  548F                     addq.l     A7, 2
  2284. 00001A40  6048                     bra        +0x4A /* 00001A8A */
  2285. label00001A42:
  2286. 00001A42  4227                     clr.b      -[A7]
  2287. 00001A44  2F2D D662                move.l     -[A7], [A5 - 0x299E]
  2288. 00001A48  486D D742                pea.l      [A5 - 0x28BE]
  2289. 00001A4C  A8AD                     syscall    PtInRect
  2290. 00001A4E  4A1F                     tst.b      [A7]+
  2291. 00001A50  6738                     beq        +0x3A /* 00001A8A */
  2292. 00001A52  4A2D D669                tst.b      [A5 - 0x2997]
  2293. 00001A56  6732                     beq        +0x34 /* 00001A8A */
  2294. 00001A58  4A2D DF1A                tst.b      [A5 - 0x20E6]
  2295. 00001A5C  6620                     bne        +0x22 /* 00001A7E */
  2296. 00001A5E  4A2D EB6B                tst.b      [A5 - 0x1495]
  2297. 00001A62  661A                     bne        +0x1C /* 00001A7E */
  2298. 00001A64  1B7C 0001 EB6B           move.b     [A5 - 0x1495], 0x1
  2299. 00001A6A  1B7C 0001 DFBD           move.b     [A5 - 0x2043], 0x1
  2300. 00001A70  2F3C 000F 0000           move.l     -[A7], 0xF0000
  2301. 00001A76  4EBA 1998                jsr        [PC + 0x1998 /* 00003410 */]
  2302. 00001A7A  588F                     addq.l     A7, 4
  2303. 00001A7C  600C                     bra        +0xE /* 00001A8A */
  2304. label00001A7E:
  2305. 00001A7E  2F3C 000E 0000           move.l     -[A7], 0xE0000
  2306. 00001A84  4EBA 198A                jsr        [PC + 0x198A /* 00003410 */]
  2307. 00001A88  588F                     addq.l     A7, 4
  2308. label00001A8A:
  2309. 00001A8A  4E75                     rts
  2310. fn00001A8C:
  2311. 00001A8C  102D D676                move.b     D0, [A5 - 0x298A]
  2312. 00001A90  6B0C                     bmi        +0xE /* 00001A9E */
  2313. 00001A92  0400 000D                subi.b     D0, 0xD /* '\r' */
  2314. 00001A96  6702                     beq        +0x4 /* 00001A9A */
  2315. 00001A98  6004                     bra        +0x6 /* 00001A9E */
  2316. label00001A9A:
  2317. 00001A9A  4EBA 1060                jsr        [PC + 0x1060 /* 00002AFC */]
  2318. label00001A9E:
  2319. 00001A9E  302D CFDC                move.w     D0, [A5 - 0x3024]
  2320. 00001AA2  6B5C                     bmi        +0x5E /* 00001B00 */
  2321. 00001AA4  5B40                     subq.w     D0, 5
  2322. 00001AA6  6702                     beq        +0x4 /* 00001AAA */
  2323. 00001AA8  6056                     bra        +0x58 /* 00001B00 */
  2324. label00001AAA:
  2325. 00001AAA  7000                     moveq.l    D0, 0x00
  2326. 00001AAC  102D D676                move.b     D0, [A5 - 0x298A]
  2327. 00001AB0  0440 001C                subi.w     D0, 0x1C
  2328. 00001AB4  0C40 005E                cmpi.w     D0, 0x5E /* '^' */
  2329. 00001AB8  6246                     bhi        +0x48 /* 00001B00 */
  2330. 00001ABA  43FA 0046                lea.l      A1, [PC + 0x46 /* 00001B02, value 0xFFDCFFE2 */]
  2331. 00001ABE  D040                     add.w      D0, D0
  2332. 00001AC0  D2F1 0000                add.w      A1, [A1 + D0.w]
  2333. 00001AC4  4ED1                     jmp        [A1]
  2334. 00001AC6  3F3C 0001                move.w     -[A7], 0x1
  2335. 00001ACA  4EAD 0282                jsr        [A5 + 0x282 /* export_76 */]
  2336. 00001ACE  548F                     addq.l     A7, 2
  2337. 00001AD0  602E                     bra        +0x30 /* 00001B00 */
  2338. 00001AD2  3F3C FFFF                move.w     -[A7], 0xFFFF
  2339. 00001AD6  4EAD 0282                jsr        [A5 + 0x282 /* export_76 */]
  2340. 00001ADA  548F                     addq.l     A7, 2
  2341. 00001ADC  6022                     bra        +0x24 /* 00001B00 */
  2342. 00001ADE  4EAD 028A                jsr        [A5 + 0x28A /* export_77 */]
  2343. 00001AE2  601C                     bra        +0x1E /* 00001B00 */
  2344. 00001AE4  4EAD 0292                jsr        [A5 + 0x292 /* export_78 */]
  2345. 00001AE8  6016                     bra        +0x18 /* 00001B00 */
  2346. 00001AEA  4A2D DF1A                tst.b      [A5 - 0x20E6]
  2347. 00001AEE  57C0                     seq        D0
  2348. 00001AF0  4400                     neg.b      D0
  2349. 00001AF2  1F00                     move.b     -[A7], D0
  2350. 00001AF4  4EBA 04B2                jsr        [PC + 0x4B2 /* 00001FA8 */]
  2351. 00001AF8  548F                     addq.l     A7, 2
  2352. 00001AFA  6004                     bra        +0x6 /* 00001B00 */
  2353. 00001AFC  4EAD 01B2                jsr        [A5 + 0x1B2 /* export_50 */]
  2354. label00001B00:
  2355. 00001B00  4E75                     rts
  2356. 00001B02  FFDC                     .invalid   <<F/7/7>>
  2357. 00001B04  FFE2                     .invalid   <<F/7/7>>
  2358. 00001B06  FFC4                     .invalid   <<F/7/7>>
  2359. 00001B08  FFD0                     .invalid   <<F/7/7>>
  2360. 00001B0A  FFFA                     .invalid   <<F/7/7>>
  2361. 00001B0C  FFFE                     .invalid   <<F/7/7>>
  2362. 00001B0E  FFFE                     .invalid   <<F/7/7>>
  2363. 00001B10  FFFE                     .invalid   <<F/7/7>>
  2364. 00001B12  FFFE                     .invalid   <<F/7/7>>
  2365. 00001B14  FFFE                     .invalid   <<F/7/7>>
  2366. 00001B16  FFFE                     .invalid   <<F/7/7>>
  2367. 00001B18  FFFE                     .invalid   <<F/7/7>>
  2368. 00001B1A  FFFE                     .invalid   <<F/7/7>>
  2369. 00001B1C  FFFE                     .invalid   <<F/7/7>>
  2370. 00001B1E  FFFE                     .invalid   <<F/7/7>>
  2371. 00001B20  FFC4                     .invalid   <<F/7/7>>
  2372. 00001B22  FFFE                     .invalid   <<F/7/7>>
  2373. 00001B24  FFD0                     .invalid   <<F/7/7>>
  2374. 00001B26  FFFE                     .invalid   <<F/7/7>>
  2375. 00001B28  FFFE                     .invalid   <<F/7/7>>
  2376. 00001B2A  FFFE                     .invalid   <<F/7/7>>
  2377. 00001B2C  FFFE                     .invalid   <<F/7/7>>
  2378. 00001B2E  FFFE                     .invalid   <<F/7/7>>
  2379. 00001B30  FFFE                     .invalid   <<F/7/7>>
  2380. 00001B32  FFFE                     .invalid   <<F/7/7>>
  2381. 00001B34  FFFE                     .invalid   <<F/7/7>>
  2382. 00001B36  FFFE                     .invalid   <<F/7/7>>
  2383. 00001B38  FFFE                     .invalid   <<F/7/7>>
  2384. 00001B3A  FFFE                     .invalid   <<F/7/7>>
  2385. 00001B3C  FFFE                     .invalid   <<F/7/7>>
  2386. 00001B3E  FFFE                     .invalid   <<F/7/7>>
  2387. 00001B40  FFFE                     .invalid   <<F/7/7>>
  2388. 00001B42  FFFE                     .invalid   <<F/7/7>>
  2389. 00001B44  FFC4                     .invalid   <<F/7/7>>
  2390. 00001B46  FFFE                     .invalid   <<F/7/7>>
  2391. 00001B48  FFFE                     .invalid   <<F/7/7>>
  2392. 00001B4A  FFFE                     .invalid   <<F/7/7>>
  2393. 00001B4C  FFFE                     .invalid   <<F/7/7>>
  2394. 00001B4E  FFFE                     .invalid   <<F/7/7>>
  2395. 00001B50  FFFE                     .invalid   <<F/7/7>>
  2396. 00001B52  FFFE                     .invalid   <<F/7/7>>
  2397. 00001B54  FFFE                     .invalid   <<F/7/7>>
  2398. 00001B56  FFFE                     .invalid   <<F/7/7>>
  2399. 00001B58  FFFE                     .invalid   <<F/7/7>>
  2400. 00001B5A  FFFE                     .invalid   <<F/7/7>>
  2401. 00001B5C  FFFE                     .invalid   <<F/7/7>>
  2402. 00001B5E  FFFE                     .invalid   <<F/7/7>>
  2403. 00001B60  FFFE                     .invalid   <<F/7/7>>
  2404. 00001B62  FFFE                     .invalid   <<F/7/7>>
  2405. 00001B64  FFFE                     .invalid   <<F/7/7>>
  2406. 00001B66  FFFE                     .invalid   <<F/7/7>>
  2407. 00001B68  FFFE                     .invalid   <<F/7/7>>
  2408. 00001B6A  FFE8                     .invalid   <<F/7/7>>
  2409. 00001B6C  FFFE                     .invalid   <<F/7/7>>
  2410. 00001B6E  FFFE                     .invalid   <<F/7/7>>
  2411. 00001B70  FFFE                     .invalid   <<F/7/7>>
  2412. 00001B72  FFFE                     .invalid   <<F/7/7>>
  2413. 00001B74  FFFE                     .invalid   <<F/7/7>>
  2414. 00001B76  FFFE                     .invalid   <<F/7/7>>
  2415. 00001B78  FFFE                     .invalid   <<F/7/7>>
  2416. 00001B7A  FFE2                     .invalid   <<F/7/7>>
  2417. 00001B7C  FFFE                     .invalid   <<F/7/7>>
  2418. 00001B7E  FFDC                     .invalid   <<F/7/7>>
  2419. 00001B80  FFFE                     .invalid   <<F/7/7>>
  2420. 00001B82  FFFE                     .invalid   <<F/7/7>>
  2421. 00001B84  FFFE                     .invalid   <<F/7/7>>
  2422. 00001B86  FFFE                     .invalid   <<F/7/7>>
  2423. 00001B88  FFD0                     .invalid   <<F/7/7>>
  2424. 00001B8A  FFE8                     .invalid   <<F/7/7>>
  2425. 00001B8C  FFFE                     .invalid   <<F/7/7>>
  2426. 00001B8E  FFFE                     .invalid   <<F/7/7>>
  2427. 00001B90  FFFE                     .invalid   <<F/7/7>>
  2428. 00001B92  FFFE                     .invalid   <<F/7/7>>
  2429. 00001B94  FFFE                     .invalid   <<F/7/7>>
  2430. 00001B96  FFFE                     .invalid   <<F/7/7>>
  2431. 00001B98  FFFE                     .invalid   <<F/7/7>>
  2432. 00001B9A  FFFE                     .invalid   <<F/7/7>>
  2433. 00001B9C  FFFE                     .invalid   <<F/7/7>>
  2434. 00001B9E  FFFE                     .invalid   <<F/7/7>>
  2435. 00001BA0  FFFE                     .invalid   <<F/7/7>>
  2436. 00001BA2  FFFE                     .invalid   <<F/7/7>>
  2437. 00001BA4  FFFE                     .invalid   <<F/7/7>>
  2438. 00001BA6  FFFE                     .invalid   <<F/7/7>>
  2439. 00001BA8  FFFE                     .invalid   <<F/7/7>>
  2440. 00001BAA  FFE8                     .invalid   <<F/7/7>>
  2441. 00001BAC  FFFE                     .invalid   <<F/7/7>>
  2442. 00001BAE  FFFE                     .invalid   <<F/7/7>>
  2443. 00001BB0  FFFE                     .invalid   <<F/7/7>>
  2444. 00001BB2  FFFE                     .invalid   <<F/7/7>>
  2445. 00001BB4  FFFE                     .invalid   <<F/7/7>>
  2446. 00001BB6  FFFE                     .invalid   <<F/7/7>>
  2447. 00001BB8  FFFE                     .invalid   <<F/7/7>>
  2448. 00001BBA  FFE2                     .invalid   <<F/7/7>>
  2449. 00001BBC  FFFE                     .invalid   <<F/7/7>>
  2450. 00001BBE  FFDC                     .invalid   <<F/7/7>>
  2451. fn00001BC0:
  2452. 00001BC0  4E56 FF00                link       A6, -0x0100
  2453. 00001BC4  2F07                     move.l     -[A7], D7
  2454. 00001BC6  4EBA 0FC0                jsr        [PC + 0xFC0 /* 00002B88 */]
  2455. 00001BCA  4267                     clr.w      -[A7]
  2456. 00001BCC  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  2457. 00001BD0  A86B                     syscall    LoWord
  2458. 00001BD2  3E1F                     move.w     D7, [A7]+
  2459. 00001BD4  4267                     clr.w      -[A7]
  2460. 00001BD6  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  2461. 00001BDA  A86A                     syscall    HiWord
  2462. 00001BDC  301F                     move.w     D0, [A7]+
  2463. 00001BDE  6B00 0122                bmi        +0x124 /* 00001D02 */
  2464. 00001BE2  0440 03EA                subi.w     D0, 0x3EA
  2465. 00001BE6  6700 0082                beq        +0x84 /* 00001C6A */
  2466. 00001BEA  6A0A                     bpl        +0xC /* 00001BF6 */
  2467. 00001BEC  5440                     addq.w     D0, 2
  2468. 00001BEE  6710                     beq        +0x12 /* 00001C00 */
  2469. 00001BF0  6A3A                     bpl        +0x3C /* 00001C2C */
  2470. 00001BF2  6000 010E                bra        +0x110 /* 00001D02 */
  2471. label00001BF6:
  2472. 00001BF6  5540                     subq.w     D0, 2
  2473. 00001BF8  6A00 0108                bpl        +0x10A /* 00001D02 */
  2474. 00001BFC  6000 00AA                bra        +0xAC /* 00001CA8 */
  2475. label00001C00:
  2476. 00001C00  3007                     move.w     D0, D7
  2477. 00001C02  670E                     beq        +0x10 /* 00001C12 */
  2478. 00001C04  6B0C                     bmi        +0xE /* 00001C12 */
  2479. 00001C06  5540                     subq.w     D0, 2
  2480. 00001C08  6A08                     bpl        +0xA /* 00001C12 */
  2481. 00001C0A  4EBA 012A                jsr        [PC + 0x12A /* 00001D36 */]
  2482. 00001C0E  6000 00F2                bra        +0xF4 /* 00001D02 */
  2483. label00001C12:
  2484. 00001C12  2F2D D62C                move.l     -[A7], [A5 - 0x29D4]
  2485. 00001C16  3F07                     move.w     -[A7], D7
  2486. 00001C18  486E FF00                pea.l      [A6 - 0x100]
  2487. 00001C1C  A946                     syscall    GetMenuItemText/GetItem
  2488. 00001C1E  4267                     clr.w      -[A7]
  2489. 00001C20  486E FF00                pea.l      [A6 - 0x100]
  2490. 00001C24  A9B6                     syscall    OpenDeskAcc
  2491. 00001C26  548F                     addq.l     A7, 2
  2492. 00001C28  6000 00D8                bra        +0xDA /* 00001D02 */
  2493. label00001C2C:
  2494. 00001C2C  3007                     move.w     D0, D7
  2495. 00001C2E  0C40 0007                cmpi.w     D0, 0x7
  2496. 00001C32  6200 00CE                bhi        +0xD0 /* 00001D02 */
  2497. 00001C36  43FA 00E6                lea.l      A1, [PC + 0xE6 /* 00001D1E, value 0xFFE4FF24 */]
  2498. 00001C3A  D040                     add.w      D0, D0
  2499. 00001C3C  D2F1 0000                add.w      A1, [A1 + D0.w]
  2500. 00001C40  4ED1                     jmp        [A1]
  2501. 00001C42  4EBA 0136                jsr        [PC + 0x136 /* 00001D7A */]
  2502. 00001C46  6000 00BA                bra        +0xBC /* 00001D02 */
  2503. 00001C4A  4EBA 0162                jsr        [PC + 0x162 /* 00001DAE */]
  2504. 00001C4E  6000 00B2                bra        +0xB4 /* 00001D02 */
  2505. 00001C52  4EBA 0166                jsr        [PC + 0x166 /* 00001DBA */]
  2506. 00001C56  6000 00AA                bra        +0xAC /* 00001D02 */
  2507. 00001C5A  4EBA 0302                jsr        [PC + 0x302 /* 00001F5E */]
  2508. 00001C5E  6000 00A2                bra        +0xA4 /* 00001D02 */
  2509. 00001C62  4EBA 0306                jsr        [PC + 0x306 /* 00001F6A */]
  2510. 00001C66  6000 009A                bra        +0x9C /* 00001D02 */
  2511. label00001C6A:
  2512. 00001C6A  70FF                     moveq.l    D0, 0xFFFFFFFF
  2513. 00001C6C  D047                     add.w      D0, D7
  2514. 00001C6E  671A                     beq        +0x1C /* 00001C8A */
  2515. 00001C70  6B00 0090                bmi        +0x92 /* 00001D02 */
  2516. 00001C74  5940                     subq.w     D0, 4
  2517. 00001C76  6724                     beq        +0x26 /* 00001C9C */
  2518. 00001C78  6A0A                     bpl        +0xC /* 00001C84 */
  2519. 00001C7A  5440                     addq.w     D0, 2
  2520. 00001C7C  6712                     beq        +0x14 /* 00001C90 */
  2521. 00001C7E  6A16                     bpl        +0x18 /* 00001C96 */
  2522. 00001C80  6000 0080                bra        +0x82 /* 00001D02 */
  2523. label00001C84:
  2524. 00001C84  5540                     subq.w     D0, 2
  2525. 00001C86  6A7A                     bpl        +0x7C /* 00001D02 */
  2526. 00001C88  6018                     bra        +0x1A /* 00001CA2 */
  2527. label00001C8A:
  2528. 00001C8A  4EBA 0312                jsr        [PC + 0x312 /* 00001F9E */]
  2529. 00001C8E  6072                     bra        +0x74 /* 00001D02 */
  2530. label00001C90:
  2531. 00001C90  4EBA 030E                jsr        [PC + 0x30E /* 00001FA0 */]
  2532. 00001C94  606C                     bra        +0x6E /* 00001D02 */
  2533. label00001C96:
  2534. 00001C96  4EBA 030A                jsr        [PC + 0x30A /* 00001FA2 */]
  2535. 00001C9A  6066                     bra        +0x68 /* 00001D02 */
  2536. label00001C9C:
  2537. 00001C9C  4EBA 0306                jsr        [PC + 0x306 /* 00001FA4 */]
  2538. 00001CA0  6060                     bra        +0x62 /* 00001D02 */
  2539. label00001CA2:
  2540. 00001CA2  4EBA 0302                jsr        [PC + 0x302 /* 00001FA6 */]
  2541. 00001CA6  605A                     bra        +0x5C /* 00001D02 */
  2542. label00001CA8:
  2543. 00001CA8  3007                     move.w     D0, D7
  2544. 00001CAA  0C40 0006                cmpi.w     D0, 0x6
  2545. 00001CAE  6252                     bhi        +0x54 /* 00001D02 */
  2546. 00001CB0  43FA 005E                lea.l      A1, [PC + 0x5E /* 00001D10, value 0xFFF2FFAC */]
  2547. 00001CB4  D040                     add.w      D0, D0
  2548. 00001CB6  D2F1 0000                add.w      A1, [A1 + D0.w]
  2549. 00001CBA  4ED1                     jmp        [A1]
  2550. 00001CBC  4A2D DF1A                tst.b      [A5 - 0x20E6]
  2551. 00001CC0  57C0                     seq        D0
  2552. 00001CC2  4400                     neg.b      D0
  2553. 00001CC4  1F00                     move.b     -[A7], D0
  2554. 00001CC6  4EBA 02E0                jsr        [PC + 0x2E0 /* 00001FA8 */]
  2555. 00001CCA  548F                     addq.l     A7, 2
  2556. 00001CCC  6034                     bra        +0x36 /* 00001D02 */
  2557. 00001CCE  4A2D DF1B                tst.b      [A5 - 0x20E5]
  2558. 00001CD2  57C0                     seq        D0
  2559. 00001CD4  4400                     neg.b      D0
  2560. 00001CD6  1F00                     move.b     -[A7], D0
  2561. 00001CD8  4EBA 02EA                jsr        [PC + 0x2EA /* 00001FC4 */]
  2562. 00001CDC  548F                     addq.l     A7, 2
  2563. 00001CDE  6022                     bra        +0x24 /* 00001D02 */
  2564. 00001CE0  4A2D DF1C                tst.b      [A5 - 0x20E4]
  2565. 00001CE4  57C0                     seq        D0
  2566. 00001CE6  4400                     neg.b      D0
  2567. 00001CE8  1F00                     move.b     -[A7], D0
  2568. 00001CEA  4EBA 0326                jsr        [PC + 0x326 /* 00002012 */]
  2569. 00001CEE  548F                     addq.l     A7, 2
  2570. 00001CF0  6010                     bra        +0x12 /* 00001D02 */
  2571. 00001CF2  4A2D D6A2                tst.b      [A5 - 0x295E]
  2572. 00001CF6  57C0                     seq        D0
  2573. 00001CF8  4400                     neg.b      D0
  2574. 00001CFA  1F00                     move.b     -[A7], D0
  2575. 00001CFC  4EBA 0362                jsr        [PC + 0x362 /* 00002060 */]
  2576. 00001D00  548F                     addq.l     A7, 2
  2577. label00001D02:
  2578. 00001D02  4267                     clr.w      -[A7]
  2579. 00001D04  A938                     syscall    HiliteMenu
  2580. 00001D06  4EBA 0E06                jsr        [PC + 0xE06 /* 00002B0E */]
  2581. 00001D0A  2E1F                     move.l     D7, [A7]+
  2582. 00001D0C  4E5E                     unlink     A6
  2583. 00001D0E  4E75                     rts
  2584. 00001D10  FFF2                     .invalid   <<F/7/7>>
  2585. 00001D12  FFAC                     .invalid   <<F/6/7>>
  2586. 00001D14  FFF2                     .invalid   <<F/7/7>>
  2587. 00001D16  FFBE                     .invalid   <<F/6/7>>
  2588. 00001D18  FFD0                     .invalid   <<F/7/7>>
  2589. 00001D1A  FFF2                     .invalid   <<F/7/7>>
  2590. 00001D1C  FFE2                     .invalid   <<F/7/7>>
  2591. 00001D1E  FFE4                     .invalid   <<F/7/7>>
  2592. 00001D20  FF24                     .extension 0xF24 <<F/4-5/7>> // unimplemented
  2593. 00001D22  FF2C                     .extension 0xF2C <<F/4-5/7>> // unimplemented
  2594. 00001D24  FFE4                     .invalid   <<F/7/7>>
  2595. 00001D26  FF34                     .extension 0xF34 <<F/4-5/7>> // unimplemented
  2596. 00001D28  FF3C                     .extension 0xF3C <<F/4-5/7>> // unimplemented
  2597. 00001D2A  FFE4                     .invalid   <<F/7/7>>
  2598. 00001D2C  FF44                     .extension 0xF44 <<F/4-5/7>> // unimplemented
  2599. fn00001D2E:
  2600. 00001D2E  4E75                     rts
  2601. 00001D30  4E75                     rts
  2602. 00001D32  4E75                     rts
  2603. 00001D34  4E75                     rts
  2604. fn00001D36:
  2605. 00001D36  2F0C                     move.l     -[A7], A4
  2606. 00001D38  42A7                     clr.l      -[A7]
  2607. 00001D3A  2F3C 5073 7967           move.l     -[A7], 0x50737967 /* 'Psyg' */
  2608. 00001D40  4EBA 0EC8                jsr        [PC + 0xEC8 /* 00002C0A */]
  2609. 00001D44  2840                     movea.l    A4, D0
  2610. 00001D46  200C                     move.l     D0, A4
  2611. 00001D48  508F                     addq.l     A7, 8
  2612. 00001D4A  672A                     beq        +0x2C /* 00001D76 */
  2613. 00001D4C  2F0C                     move.l     -[A7], A4
  2614. 00001D4E  42A7                     clr.l      -[A7]
  2615. 00001D50  42A7                     clr.l      -[A7]
  2616. 00001D52  42A7                     clr.l      -[A7]
  2617. 00001D54  A98B                     syscall    ParamText
  2618. 00001D56  41ED 00BA                lea.l      A0, [A5 + 0xBA /* export_19 */]
  2619. 00001D5A  2B48 DF5C                move.l     [A5 - 0x20A4], A0
  2620. 00001D5E  43ED 00C2                lea.l      A1, [A5 + 0xC2 /* export_20 */]
  2621. 00001D62  2B49 DF60                move.l     [A5 - 0x20A0], A1
  2622. 00001D66  3F3C 03E8                move.w     -[A7], 0x3E8
  2623. 00001D6A  4EBA 0F40                jsr        [PC + 0xF40 /* 00002CAC */]
  2624. 00001D6E  2F0C                     move.l     -[A7], A4
  2625. 00001D70  4EBA 0EE2                jsr        [PC + 0xEE2 /* 00002C54 */]
  2626. 00001D74  5C8F                     addq.l     A7, 6
  2627. label00001D76:
  2628. 00001D76  285F                     movea.l    A4, [A7]+
  2629. 00001D78  4E75                     rts
  2630. fn00001D7A:
  2631. 00001D7A  4A6D DFF2                tst.w      [A5 - 0x200E]
  2632. 00001D7E  6F06                     ble        +0x8 /* 00001D86 */
  2633. 00001D80  3B6D DFF2 DFC2           move.w     [A5 - 0x203E], [A5 - 0x200E]
  2634. label00001D86:
  2635. 00001D86  0C6D 000A DFC2           cmpi.w     [A5 - 0x203E], 0xA /* '\n' */
  2636. 00001D8C  6D04                     blt        +0x6 /* 00001D92 */
  2637. 00001D8E  426D DFC2                clr.w      [A5 - 0x203E]
  2638. label00001D92:
  2639. 00001D92  302D DFC2                move.w     D0, [A5 - 0x203E]
  2640. 00001D96  204D                     movea.l    A0, A5
  2641. 00001D98  D0C0                     add.w      A0, D0
  2642. 00001D9A  D0C0                     add.w      A0, D0
  2643. 00001D9C  4A68 E012                tst.w      [A0 - 0x1FEE]
  2644. 00001DA0  6604                     bne        +0x6 /* 00001DA6 */
  2645. 00001DA2  426D DFC2                clr.w      [A5 - 0x203E]
  2646. label00001DA6:
  2647. 00001DA6  1B7C 0001 DFBF           move.b     [A5 - 0x2041], 0x1
  2648. 00001DAC  4E75                     rts
  2649. fn00001DAE:
  2650. 00001DAE  3B7C 0009 CFDC           move.w     [A5 - 0x3024], 0x9 /* '\t' */
  2651. 00001DB4  426D DF18                clr.w      [A5 - 0x20E8]
  2652. 00001DB8  4E75                     rts
  2653. fn00001DBA:
  2654. 00001DBA  41ED 013A                lea.l      A0, [A5 + 0x13A /* export_35 */]
  2655. 00001DBE  2B48 DF5C                move.l     [A5 - 0x20A4], A0
  2656. 00001DC2  43ED 00C2                lea.l      A1, [A5 + 0xC2 /* export_20 */]
  2657. 00001DC6  2B49 DF60                move.l     [A5 - 0x20A0], A1
  2658. 00001DCA  41ED 0142                lea.l      A0, [A5 + 0x142 /* export_36 */]
  2659. 00001DCE  2B48 DF64                move.l     [A5 - 0x209C], A0
  2660. 00001DD2  41ED 014A                lea.l      A0, [A5 + 0x14A /* export_37 */]
  2661. 00001DD6  2B48 DF68                move.l     [A5 - 0x2098], A0
  2662. 00001DDA  3F3C 03E9                move.w     -[A7], 0x3E9
  2663. 00001DDE  4EBA 0ECC                jsr        [PC + 0xECC /* 00002CAC */]
  2664. 00001DE2  548F                     addq.l     A7, 2
  2665. 00001DE4  4E75                     rts
  2666. export_35:
  2667. 00001DE6  2F2D DF6C                move.l     -[A7], [A5 - 0x2094]
  2668. 00001DEA  3F3C 0006                move.w     -[A7], 0x6
  2669. 00001DEE  A827                     syscall    HideDialogItem/HideDItem
  2670. 00001DF0  2F2D DF6C                move.l     -[A7], [A5 - 0x2094]
  2671. 00001DF4  3F3C 0007                move.w     -[A7], 0x7
  2672. 00001DF8  A827                     syscall    HideDialogItem/HideDItem
  2673. 00001DFA  2F2D DF6C                move.l     -[A7], [A5 - 0x2094]
  2674. 00001DFE  A981                     syscall    DrawDialog
  2675. 00001E00  4EBA 0FA8                jsr        [PC + 0xFA8 /* 00002DAA */]
  2676. 00001E04  4E75                     rts
  2677. export_36:
  2678. 00001E06  4E56 FFF0                link       A6, -0x0010
  2679. 00001E0A  0C6D 0001 DF70           cmpi.w     [A5 - 0x2090], 0x1
  2680. 00001E10  6604                     bne        +0x6 /* 00001E16 */
  2681. 00001E12  7001                     moveq.l    D0, 0x01
  2682. 00001E14  604E                     bra        +0x50 /* 00001E64 */
  2683. label00001E16:
  2684. 00001E16  0C6D 0002 DF70           cmpi.w     [A5 - 0x2090], 0x2
  2685. 00001E1C  6604                     bne        +0x6 /* 00001E22 */
  2686. 00001E1E  7001                     moveq.l    D0, 0x01
  2687. 00001E20  6042                     bra        +0x44 /* 00001E64 */
  2688. label00001E22:
  2689. 00001E22  0C6D 0005 DF70           cmpi.w     [A5 - 0x2090], 0x5
  2690. 00001E28  6638                     bne        +0x3A /* 00001E62 */
  2691. 00001E2A  2F2D DF74                move.l     -[A7], [A5 - 0x208C]
  2692. 00001E2E  486E FFF0                pea.l      [A6 - 0x10]
  2693. 00001E32  A990                     syscall    GetDialogItemText/GetIText
  2694. 00001E34  486E FFF0                pea.l      [A6 - 0x10]
  2695. 00001E38  1F3C 0001                move.b     -[A7], 0x1
  2696. 00001E3C  4EBA 1C7E                jsr        [PC + 0x1C7E /* 00003ABC */]
  2697. 00001E40  0C2E 000A FFF0           cmpi.b     [A6 - 0x10], 0xA /* '\n' */
  2698. 00001E46  6F0C                     ble        +0xE /* 00001E54 */
  2699. 00001E48  1D7C 000A FFF0           move.b     [A6 - 0x10], 0xA /* '\n' */
  2700. 00001E4E  3F3C 0001                move.w     -[A7], 0x1
  2701. 00001E52  A9C8                     syscall    SysBeep
  2702. label00001E54:
  2703. 00001E54  2F2D DF74                move.l     -[A7], [A5 - 0x208C]
  2704. 00001E58  486E FFF0                pea.l      [A6 - 0x10]
  2705. 00001E5C  A98F                     syscall    SetDialogItemText/SetIText
  2706. 00001E5E  7000                     moveq.l    D0, 0x00
  2707. 00001E60  6002                     bra        +0x4 /* 00001E64 */
  2708. label00001E62:
  2709. 00001E62  7000                     moveq.l    D0, 0x00
  2710. label00001E64:
  2711. 00001E64  4E5E                     unlink     A6
  2712. 00001E66  4E75                     rts
  2713. export_37:
  2714. 00001E68  4E56 FFDC                link       A6, -0x0024
  2715. 00001E6C  2F07                     move.l     -[A7], D7
  2716. 00001E6E  0C6D 0001 DF70           cmpi.w     [A5 - 0x2090], 0x1
  2717. 00001E74  6600 00E2                bne        +0xE4 /* 00001F58 */
  2718. 00001E78  486D D1BC                pea.l      [A5 - 0x2E44]
  2719. 00001E7C  486D CFE6                pea.l      [A5 - 0x301A]
  2720. 00001E80  4EBA 0AA2                jsr        [PC + 0xAA2 /* 00002924 */]
  2721. 00001E84  2EAD DF6C                move.l     [A7], [A5 - 0x2094]
  2722. 00001E88  3F3C 0005                move.w     -[A7], 0x5
  2723. 00001E8C  486D DF72                pea.l      [A5 - 0x208E]
  2724. 00001E90  486D DF74                pea.l      [A5 - 0x208C]
  2725. 00001E94  486D DF78                pea.l      [A5 - 0x2088]
  2726. 00001E98  A98D                     syscall    GetDialogItem/GetDItem
  2727. 00001E9A  2EAD DF74                move.l     [A7], [A5 - 0x208C]
  2728. 00001E9E  486E FFF0                pea.l      [A6 - 0x10]
  2729. 00001EA2  A990                     syscall    GetDialogItemText/GetIText
  2730. 00001EA4  102E FFF0                move.b     D0, [A6 - 0x10]
  2731. 00001EA8  4880                     ext.w      D0
  2732. 00001EAA  3040                     movea.w    A0, D0
  2733. 00001EAC  2F08                     move.l     -[A7], A0
  2734. 00001EAE  486D D1BC                pea.l      [A5 - 0x2E44]
  2735. 00001EB2  486E FFF1                pea.l      [A6 - 0xF]
  2736. 00001EB6  4EBA 0A50                jsr        [PC + 0xA50 /* 00002908 */]
  2737. 00001EBA  2EAD DF6C                move.l     [A7], [A5 - 0x2094]
  2738. 00001EBE  4878 0005                push.l     0x5
  2739. 00001EC2  3F3C 7FFF                move.w     -[A7], 0x7FFF
  2740. 00001EC6  A97E                     syscall    SelectDialogItemText/SelIText
  2741. 00001EC8  2EAD DF6C                move.l     [A7], [A5 - 0x2094]
  2742. 00001ECC  3F3C 0001                move.w     -[A7], 0x1
  2743. 00001ED0  A827                     syscall    HideDialogItem/HideDItem
  2744. 00001ED2  2EAD DF6C                move.l     [A7], [A5 - 0x2094]
  2745. 00001ED6  3F3C 0002                move.w     -[A7], 0x2
  2746. 00001EDA  A827                     syscall    HideDialogItem/HideDItem
  2747. 00001EDC  4EAD 02AA                jsr        [A5 + 0x2AA /* export_81 */]
  2748. 00001EE0  4A00                     tst.b      D0
  2749. 00001EE2  6752                     beq        +0x54 /* 00001F36 */
  2750. 00001EE4  4878 0001                push.l     0x1
  2751. 00001EE8  486E FFF0                pea.l      [A6 - 0x10]
  2752. 00001EEC  4EBA 1D72                jsr        [PC + 0x1D72 /* 00003C60 */]
  2753. 00001EF0  1D7C 0008 FFE0           move.b     [A6 - 0x20], 0x8
  2754. 00001EF6  102E FFE0                move.b     D0, [A6 - 0x20]
  2755. 00001EFA  4880                     ext.w      D0
  2756. 00001EFC  3040                     movea.w    A0, D0
  2757. 00001EFE  2F08                     move.l     -[A7], A0
  2758. 00001F00  486E FFE1                pea.l      [A6 - 0x1F]
  2759. 00001F04  302D DFF2                move.w     D0, [A5 - 0x200E]
  2760. 00001F08  204D                     movea.l    A0, A5
  2761. 00001F0A  48C0                     ext.l      D0
  2762. 00001F0C  E588                     lsl        D0, 2
  2763. 00001F0E  D1C0                     add.l      A0, D0
  2764. 00001F10  2F28 D0DA                move.l     -[A7], [A0 - 0x2F26]
  2765. 00001F14  4EBA 09F2                jsr        [PC + 0x9F2 /* 00002908 */]
  2766. 00001F18  486E FFF0                pea.l      [A6 - 0x10]
  2767. 00001F1C  486E FFE0                pea.l      [A6 - 0x20]
  2768. 00001F20  42A7                     clr.l      -[A7]
  2769. 00001F22  42A7                     clr.l      -[A7]
  2770. 00001F24  A98B                     syscall    ParamText
  2771. 00001F26  7E06                     moveq.l    D7, 0x06
  2772. 00001F28  2D7C 0000 00B4 FFDC      move.l     [A6 - 0x24], 0xB4
  2773. 00001F30  4FEF 000C                lea.l      A7, [A7 + 0xC]
  2774. 00001F34  6008                     bra        +0xA /* 00001F3E */
  2775. label00001F36:
  2776. 00001F36  7E07                     moveq.l    D7, 0x07
  2777. 00001F38  7078                     moveq.l    D0, 0x78
  2778. 00001F3A  2D40 FFDC                move.l     [A6 - 0x24], D0
  2779. label00001F3E:
  2780. 00001F3E  2F2D DF6C                move.l     -[A7], [A5 - 0x2094]
  2781. 00001F42  3F07                     move.w     -[A7], D7
  2782. 00001F44  A828                     syscall    ShowDialogItem/ShowDItem
  2783. 00001F46  2F2D DF6C                move.l     -[A7], [A5 - 0x2094]
  2784. 00001F4A  A981                     syscall    DrawDialog
  2785. 00001F4C  43EE FFDC                lea.l      A1, [A6 - 0x24]
  2786. 00001F50  206E FFDC                movea.l    A0, [A6 - 0x24]
  2787. 00001F54  A03B                     syscall    Delay
  2788. 00001F56  2280                     move.l     [A1], D0
  2789. label00001F58:
  2790. 00001F58  2E1F                     move.l     D7, [A7]+
  2791. 00001F5A  4E5E                     unlink     A6
  2792. 00001F5C  4E75                     rts
  2793. fn00001F5E:
  2794. 00001F5E  3B7C 0006 CFDC           move.w     [A5 - 0x3024], 0x6
  2795. 00001F64  426D DF18                clr.w      [A5 - 0x20E8]
  2796. 00001F68  4E75                     rts
  2797. fn00001F6A:
  2798. 00001F6A  4A2D DFBF                tst.b      [A5 - 0x2041]
  2799. 00001F6E  6716                     beq        +0x18 /* 00001F86 */
  2800. 00001F70  3F3C 03EE                move.w     -[A7], 0x3EE
  2801. 00001F74  4EBA 0D04                jsr        [PC + 0xD04 /* 00002C7A */]
  2802. 00001F78  5340                     subq.w     D0, 1
  2803. 00001F7A  548F                     addq.l     A7, 2
  2804. 00001F7C  660E                     bne        +0x10 /* 00001F8C */
  2805. 00001F7E  1B7C 0001 CE67           move.b     [A5 - 0x3199], 0x1
  2806. 00001F84  6006                     bra        +0x8 /* 00001F8C */
  2807. label00001F86:
  2808. 00001F86  1B7C 0001 CE67           move.b     [A5 - 0x3199], 0x1
  2809. label00001F8C:
  2810. 00001F8C  4A2D CE67                tst.b      [A5 - 0x3199]
  2811. 00001F90  670A                     beq        +0xC /* 00001F9C */
  2812. 00001F92  3B7C 000A CFDC           move.w     [A5 - 0x3024], 0xA /* '\n' */
  2813. 00001F98  426D DF18                clr.w      [A5 - 0x20E8]
  2814. label00001F9C:
  2815. 00001F9C  4E75                     rts
  2816. fn00001F9E:
  2817. 00001F9E  4E75                     rts
  2818. fn00001FA0:
  2819. 00001FA0  4E75                     rts
  2820. fn00001FA2:
  2821. 00001FA2  4E75                     rts
  2822. fn00001FA4:
  2823. 00001FA4  4E75                     rts
  2824. fn00001FA6:
  2825. 00001FA6  4E75                     rts
  2826. fn00001FA8:
  2827. 00001FA8  4E56 0000                link       A6, 0
  2828. 00001FAC  1B6E 0008 DF1A           move.b     [A5 - 0x20E6], [A6 + 0x8]
  2829. 00001FB2  2F2D D638                move.l     -[A7], [A5 - 0x29C8]
  2830. 00001FB6  3F3C 0001                move.w     -[A7], 0x1
  2831. 00001FBA  1F2D DF1A                move.b     -[A7], [A5 - 0x20E6]
  2832. 00001FBE  A945                     syscall    CheckItem
  2833. 00001FC0  4E5E                     unlink     A6
  2834. 00001FC2  4E75                     rts
  2835. fn00001FC4:
  2836. 00001FC4  4E56 0000                link       A6, 0
  2837. 00001FC8  48E7 0300                movem.l    -[A7], D6,D7
  2838. 00001FCC  1E2D CFE0                move.b     D7, [A5 - 0x3020]
  2839. 00001FD0  1C2D CFE1                move.b     D6, [A5 - 0x301F]
  2840. 00001FD4  4EBA 1650                jsr        [PC + 0x1650 /* 00003626 */]
  2841. 00001FD8  4EBA 1410                jsr        [PC + 0x1410 /* 000033EA */]
  2842. 00001FDC  1B6E 0008 DF1B           move.b     [A5 - 0x20E5], [A6 + 0x8]
  2843. 00001FE2  2F2D D638                move.l     -[A7], [A5 - 0x29C8]
  2844. 00001FE6  3F3C 0003                move.w     -[A7], 0x3
  2845. 00001FEA  1F2D DF1B                move.b     -[A7], [A5 - 0x20E5]
  2846. 00001FEE  A945                     syscall    CheckItem
  2847. 00001FF0  4A07                     tst.b      D7
  2848. 00001FF2  6604                     bne        +0x6 /* 00001FF8 */
  2849. 00001FF4  4A06                     tst.b      D6
  2850. 00001FF6  6712                     beq        +0x14 /* 0000200A */
  2851. label00001FF8:
  2852. 00001FF8  4EBA 13BC                jsr        [PC + 0x13BC /* 000033B6 */]
  2853. 00001FFC  3B6D DF4C DF52           move.w     [A5 - 0x20AE], [A5 - 0x20B4]
  2854. 00002002  4A06                     tst.b      D6
  2855. 00002004  6704                     beq        +0x6 /* 0000200A */
  2856. 00002006  4EBA 15F0                jsr        [PC + 0x15F0 /* 000035F8 */]
  2857. label0000200A:
  2858. 0000200A  4CDF 00C0                movem.l    D6,D7, [A7]+
  2859. 0000200E  4E5E                     unlink     A6
  2860. 00002010  4E75                     rts
  2861. fn00002012:
  2862. 00002012  4E56 0000                link       A6, 0
  2863. 00002016  48E7 0300                movem.l    -[A7], D6,D7
  2864. 0000201A  1E2D CFE0                move.b     D7, [A5 - 0x3020]
  2865. 0000201E  1C2D CFE1                move.b     D6, [A5 - 0x301F]
  2866. 00002022  4EBA 1602                jsr        [PC + 0x1602 /* 00003626 */]
  2867. 00002026  4EBA 13C2                jsr        [PC + 0x13C2 /* 000033EA */]
  2868. 0000202A  1B6E 0008 DF1C           move.b     [A5 - 0x20E4], [A6 + 0x8]
  2869. 00002030  2F2D D638                move.l     -[A7], [A5 - 0x29C8]
  2870. 00002034  3F3C 0004                move.w     -[A7], 0x4
  2871. 00002038  1F2D DF1C                move.b     -[A7], [A5 - 0x20E4]
  2872. 0000203C  A945                     syscall    CheckItem
  2873. 0000203E  4A07                     tst.b      D7
  2874. 00002040  6604                     bne        +0x6 /* 00002046 */
  2875. 00002042  4A06                     tst.b      D6
  2876. 00002044  6712                     beq        +0x14 /* 00002058 */
  2877. label00002046:
  2878. 00002046  4EBA 136E                jsr        [PC + 0x136E /* 000033B6 */]
  2879. 0000204A  3B6D DF4C DF52           move.w     [A5 - 0x20AE], [A5 - 0x20B4]
  2880. 00002050  4A06                     tst.b      D6
  2881. 00002052  6704                     beq        +0x6 /* 00002058 */
  2882. 00002054  4EBA 15A2                jsr        [PC + 0x15A2 /* 000035F8 */]
  2883. label00002058:
  2884. 00002058  4CDF 00C0                movem.l    D6,D7, [A7]+
  2885. 0000205C  4E5E                     unlink     A6
  2886. 0000205E  4E75                     rts
  2887. fn00002060:
  2888. 00002060  4E56 FFFE                link       A6, -0x0002
  2889. 00002064  1B6E 0008 D6A2           move.b     [A5 - 0x295E], [A6 + 0x8]
  2890. 0000206A  1B6E 0008 D6A4           move.b     [A5 - 0x295C], [A6 + 0x8]
  2891. 00002070  1B6E 0008 D6A3           move.b     [A5 - 0x295D], [A6 + 0x8]
  2892. 00002076  2F2D D638                move.l     -[A7], [A5 - 0x29C8]
  2893. 0000207A  3F3C 0006                move.w     -[A7], 0x6
  2894. 0000207E  1F2D D6A2                move.b     -[A7], [A5 - 0x295E]
  2895. 00002082  A945                     syscall    CheckItem
  2896. 00002084  4E5E                     unlink     A6
  2897. 00002086  4E75                     rts
  2898. fn00002088:
  2899. 00002088  302D DF18                move.w     D0, [A5 - 0x20E8]
  2900. 0000208C  526D DF18                addq.w     [A5 - 0x20E8], 1
  2901. 00002090  0C40 0009                cmpi.w     D0, 0x9 /* '\t' */
  2902. 00002094  6200 012E                bhi        +0x130 /* 000021C4 */
  2903. 00002098  43FA 0136                lea.l      A1, [PC + 0x136 /* 000021D0, value 0xFED4FF0C */]
  2904. 0000209C  D040                     add.w      D0, D0
  2905. 0000209E  D2F1 0000                add.w      A1, [A1 + D0.w]
  2906. 000020A2  4ED1                     jmp        [A1]
  2907. 000020A4  2F2D D630                move.l     -[A7], [A5 - 0x29D0]
  2908. 000020A8  4267                     clr.w      -[A7]
  2909. 000020AA  A93A                     syscall    DisableItem
  2910. 000020AC  2F2D D638                move.l     -[A7], [A5 - 0x29C8]
  2911. 000020B0  4267                     clr.w      -[A7]
  2912. 000020B2  A93A                     syscall    DisableItem
  2913. 000020B4  302D D6AA                move.w     D0, [A5 - 0x2956]
  2914. 000020B8  0640 044C                addi.w     D0, 0x44C
  2915. 000020BC  3F00                     move.w     -[A7], D0
  2916. 000020BE  4267                     clr.w      -[A7]
  2917. 000020C0  4EAD 023A                jsr        [A5 + 0x23A /* export_67 */]
  2918. 000020C4  302D D6AA                move.w     D0, [A5 - 0x2956]
  2919. 000020C8  0640 0514                addi.w     D0, 0x514
  2920. 000020CC  3E80                     move.w     [A7], D0
  2921. 000020CE  3F3C 0002                move.w     -[A7], 0x2
  2922. 000020D2  4EAD 023A                jsr        [A5 + 0x23A /* export_67 */]
  2923. 000020D6  5C8F                     addq.l     A7, 6
  2924. 000020D8  6000 00F4                bra        +0xF6 /* 000021CE */
  2925. 000020DC  4EAD 0212                jsr        [A5 + 0x212 /* export_62 */]
  2926. 000020E0  6000 00EC                bra        +0xEE /* 000021CE */
  2927. 000020E4  3F3C 0020                move.w     -[A7], 0x20 /* ' ' */
  2928. 000020E8  4EBA 0762                jsr        [PC + 0x762 /* 0000284C */]
  2929. 000020EC  3B7C 0078 DF58           move.w     [A5 - 0x20A8], 0x78 /* 'x' */
  2930. 000020F2  2F3C 0000 FFFF           move.l     -[A7], 0xFFFF
  2931. 000020F8  201F                     move.l     D0, [A7]+
  2932. 000020FA  A032                     syscall    FlushEvents
  2933. 000020FC  548F                     addq.l     A7, 2
  2934. 000020FE  6000 00CE                bra        +0xD0 /* 000021CE */
  2935. 00002102  3F3C 0001                move.w     -[A7], 0x1
  2936. 00002106  4EBA 0772                jsr        [PC + 0x772 /* 0000287A */]
  2937. 0000210A  536D DF58                subq.w     [A5 - 0x20A8], 1
  2938. 0000210E  4A2D D668                tst.b      [A5 - 0x2998]
  2939. 00002112  548F                     addq.l     A7, 2
  2940. 00002114  6600 00B8                bne        +0xBA /* 000021CE */
  2941. 00002118  4A2D D674                tst.b      [A5 - 0x298C]
  2942. 0000211C  6600 00B0                bne        +0xB2 /* 000021CE */
  2943. 00002120  4A6D DF58                tst.w      [A5 - 0x20A8]
  2944. 00002124  6F00 00A8                ble        +0xAA /* 000021CE */
  2945. 00002128  536D DF18                subq.w     [A5 - 0x20E8], 1
  2946. 0000212C  6000 00A0                bra        +0xA2 /* 000021CE */
  2947. 00002130  3F3C 0010                move.w     -[A7], 0x10
  2948. 00002134  4EBA 06EA                jsr        [PC + 0x6EA /* 00002820 */]
  2949. 00002138  548F                     addq.l     A7, 2
  2950. 0000213A  6000 0092                bra        +0x94 /* 000021CE */
  2951. 0000213E  4EAD 01D2                jsr        [A5 + 0x1D2 /* export_54 */]
  2952. 00002142  3F3C 0008                move.w     -[A7], 0x8
  2953. 00002146  4EBA 0704                jsr        [PC + 0x704 /* 0000284C */]
  2954. 0000214A  2F3C 0000 FFFF           move.l     -[A7], 0xFFFF
  2955. 00002150  201F                     move.l     D0, [A7]+
  2956. 00002152  A032                     syscall    FlushEvents
  2957. 00002154  548F                     addq.l     A7, 2
  2958. 00002156  6076                     bra        +0x78 /* 000021CE */
  2959. 00002158  4A2D D668                tst.b      [A5 - 0x2998]
  2960. 0000215C  6606                     bne        +0x8 /* 00002164 */
  2961. 0000215E  4A2D D674                tst.b      [A5 - 0x298C]
  2962. 00002162  670C                     beq        +0xE /* 00002170 */
  2963. label00002164:
  2964. 00002164  3F3C 0008                move.w     -[A7], 0x8
  2965. 00002168  4EBA 06B6                jsr        [PC + 0x6B6 /* 00002820 */]
  2966. 0000216C  548F                     addq.l     A7, 2
  2967. 0000216E  605E                     bra        +0x60 /* 000021CE */
  2968. label00002170:
  2969. 00002170  536D DF18                subq.w     [A5 - 0x20E8], 1
  2970. 00002174  6058                     bra        +0x5A /* 000021CE */
  2971. 00002176  4EAD 01DA                jsr        [A5 + 0x1DA /* export_55 */]
  2972. 0000217A  3F3C 0008                move.w     -[A7], 0x8
  2973. 0000217E  4EBA 06CC                jsr        [PC + 0x6CC /* 0000284C */]
  2974. 00002182  2F3C 0000 FFFF           move.l     -[A7], 0xFFFF
  2975. 00002188  201F                     move.l     D0, [A7]+
  2976. 0000218A  A032                     syscall    FlushEvents
  2977. 0000218C  548F                     addq.l     A7, 2
  2978. 0000218E  603E                     bra        +0x40 /* 000021CE */
  2979. 00002190  4A2D D668                tst.b      [A5 - 0x2998]
  2980. 00002194  6606                     bne        +0x8 /* 0000219C */
  2981. 00002196  4A2D D674                tst.b      [A5 - 0x298C]
  2982. 0000219A  670C                     beq        +0xE /* 000021A8 */
  2983. label0000219C:
  2984. 0000219C  3F3C 0008                move.w     -[A7], 0x8
  2985. 000021A0  4EBA 067E                jsr        [PC + 0x67E /* 00002820 */]
  2986. 000021A4  548F                     addq.l     A7, 2
  2987. 000021A6  6026                     bra        +0x28 /* 000021CE */
  2988. label000021A8:
  2989. 000021A8  536D DF18                subq.w     [A5 - 0x20E8], 1
  2990. 000021AC  6020                     bra        +0x22 /* 000021CE */
  2991. 000021AE  4EAD 0242                jsr        [A5 + 0x242 /* export_68 */]
  2992. 000021B2  2F2D D630                move.l     -[A7], [A5 - 0x29D0]
  2993. 000021B6  4267                     clr.w      -[A7]
  2994. 000021B8  A939                     syscall    EnableItem
  2995. 000021BA  2F2D D638                move.l     -[A7], [A5 - 0x29C8]
  2996. 000021BE  4267                     clr.w      -[A7]
  2997. 000021C0  A939                     syscall    EnableItem
  2998. 000021C2  600A                     bra        +0xC /* 000021CE */
  2999. label000021C4:
  3000. 000021C4  3B7C 0001 CFDC           move.w     [A5 - 0x3024], 0x1
  3001. 000021CA  426D DF18                clr.w      [A5 - 0x20E8]
  3002. label000021CE:
  3003. 000021CE  4E75                     rts
  3004. 000021D0  FED4 FF0C                .extension 0xED4 <<F/2-3/7>> // unimplemented
  3005. 000021D4  FF14                     .extension 0xF14 <<F/4-5/7>> // unimplemented
  3006. 000021D6  FF32                     .extension 0xF32 <<F/4-5/7>> // unimplemented
  3007. 000021D8  FF60                     .extension 0xF60 <<F/4-5/7>> // unimplemented
  3008. 000021DA  FF6E                     .extension 0xF6E <<F/4-5/7>> // unimplemented
  3009. 000021DC  FF88                     .invalid   <<F/6/7>>
  3010. 000021DE  FFA6                     .invalid   <<F/6/7>>
  3011. 000021E0  FFC0                     .invalid   <<F/7/7>>
  3012. 000021E2  FFDE                     .invalid   <<F/7/7>>
  3013. fn000021E4:
  3014. 000021E4  302D DF18                move.w     D0, [A5 - 0x20E8]
  3015. 000021E8  526D DF18                addq.w     [A5 - 0x20E8], 1
  3016. 000021EC  4A40                     tst.w      D0
  3017. 000021EE  6712                     beq        +0x14 /* 00002202 */
  3018. 000021F0  6B00 00D4                bmi        +0xD6 /* 000022C6 */
  3019. 000021F4  5540                     subq.w     D0, 2
  3020. 000021F6  6700 00BE                beq        +0xC0 /* 000022B6 */
  3021. 000021FA  6A00 00CA                bpl        +0xCC /* 000022C6 */
  3022. 000021FE  6000 008C                bra        +0x8E /* 0000228C */
  3023. label00002202:
  3024. 00002202  2F2D D630                move.l     -[A7], [A5 - 0x29D0]
  3025. 00002206  3F3C 0001                move.w     -[A7], 0x1
  3026. 0000220A  A939                     syscall    EnableItem
  3027. 0000220C  2F2D D630                move.l     -[A7], [A5 - 0x29D0]
  3028. 00002210  3F3C 0002                move.w     -[A7], 0x2
  3029. 00002214  A93A                     syscall    DisableItem
  3030. 00002216  2F2D D630                move.l     -[A7], [A5 - 0x29D0]
  3031. 0000221A  3F3C 0004                move.w     -[A7], 0x4
  3032. 0000221E  A939                     syscall    EnableItem
  3033. 00002220  2F2D D630                move.l     -[A7], [A5 - 0x29D0]
  3034. 00002224  3F3C 0005                move.w     -[A7], 0x5
  3035. 00002228  A93A                     syscall    DisableItem
  3036. 0000222A  4227                     clr.b      -[A7]
  3037. 0000222C  4EBA FD7A                jsr        [PC - 0x286 /* 00001FA8 */]
  3038. 00002230  2F2D D638                move.l     -[A7], [A5 - 0x29C8]
  3039. 00002234  3F3C 0001                move.w     -[A7], 0x1
  3040. 00002238  A93A                     syscall    DisableItem
  3041. 0000223A  2F2D D638                move.l     -[A7], [A5 - 0x29C8]
  3042. 0000223E  3F3C 0006                move.w     -[A7], 0x6
  3043. 00002242  A939                     syscall    EnableItem
  3044. 00002244  302D D6AA                move.w     D0, [A5 - 0x2956]
  3045. 00002248  0640 04B0                addi.w     D0, 0x4B0
  3046. 0000224C  3E80                     move.w     [A7], D0
  3047. 0000224E  4267                     clr.w      -[A7]
  3048. 00002250  4EAD 023A                jsr        [A5 + 0x23A /* export_67 */]
  3049. 00002254  2EBC 0001 04E2           move.l     [A7], 0x104E2
  3050. 0000225A  4EAD 023A                jsr        [A5 + 0x23A /* export_67 */]
  3051. 0000225E  302D D6AA                move.w     D0, [A5 - 0x2956]
  3052. 00002262  0640 0514                addi.w     D0, 0x514
  3053. 00002266  3E80                     move.w     [A7], D0
  3054. 00002268  3F3C 0002                move.w     -[A7], 0x2
  3055. 0000226C  4EAD 023A                jsr        [A5 + 0x23A /* export_67 */]
  3056. 00002270  3B7C FFFF DFE0           move.w     [A5 - 0x2020], 0xFFFF
  3057. 00002276  3B7C FFFF DFDE           move.w     [A5 - 0x2022], 0xFFFF
  3058. 0000227C  426D DFC2                clr.w      [A5 - 0x203E]
  3059. 00002280  426D DFF2                clr.w      [A5 - 0x200E]
  3060. 00002284  422D DFBF                clr.b      [A5 - 0x2041]
  3061. 00002288  5C8F                     addq.l     A7, 6
  3062. 0000228A  6044                     bra        +0x46 /* 000022D0 */
  3063. label0000228C:
  3064. 0000228C  3B6D D902 FF68           move.w     [A5 - 0x98], [A5 - 0x26FE]
  3065. 00002292  1F3C 0001                move.b     -[A7], 0x1
  3066. 00002296  4EAD 01CA                jsr        [A5 + 0x1CA /* export_53 */]
  3067. 0000229A  1EBC 0001                move.b     [A7], 0x1
  3068. 0000229E  4EAD 01FA                jsr        [A5 + 0x1FA /* export_59 */]
  3069. 000022A2  1EBC 0001                move.b     [A7], 0x1
  3070. 000022A6  4EAD 0202                jsr        [A5 + 0x202 /* export_60 */]
  3071. 000022AA  1EBC 0001                move.b     [A7], 0x1
  3072. 000022AE  4EAD 020A                jsr        [A5 + 0x20A /* export_61 */]
  3073. 000022B2  548F                     addq.l     A7, 2
  3074. 000022B4  601A                     bra        +0x1C /* 000022D0 */
  3075. label000022B6:
  3076. 000022B6  3F3C 0008                move.w     -[A7], 0x8
  3077. 000022BA  4EBA 0590                jsr        [PC + 0x590 /* 0000284C */]
  3078. 000022BE  4EBA FA6E                jsr        [PC - 0x592 /* 00001D2E */]
  3079. 000022C2  548F                     addq.l     A7, 2
  3080. 000022C4  600A                     bra        +0xC /* 000022D0 */
  3081. label000022C6:
  3082. 000022C6  3B7C 0002 CFDC           move.w     [A5 - 0x3024], 0x2
  3083. 000022CC  426D DF18                clr.w      [A5 - 0x20E8]
  3084. label000022D0:
  3085. 000022D0  4E75                     rts
  3086. fn000022D2:
  3087. 000022D2  302D DF18                move.w     D0, [A5 - 0x20E8]
  3088. 000022D6  526D DF18                addq.w     [A5 - 0x20E8], 1
  3089. 000022DA  4A40                     tst.w      D0
  3090. 000022DC  670A                     beq        +0xC /* 000022E8 */
  3091. 000022DE  6B4A                     bmi        +0x4C /* 0000232A */
  3092. 000022E0  5540                     subq.w     D0, 2
  3093. 000022E2  6740                     beq        +0x42 /* 00002324 */
  3094. 000022E4  6A44                     bpl        +0x46 /* 0000232A */
  3095. 000022E6  6030                     bra        +0x32 /* 00002318 */
  3096. label000022E8:
  3097. 000022E8  4227                     clr.b      -[A7]
  3098. 000022EA  4EAD 01FA                jsr        [A5 + 0x1FA /* export_59 */]
  3099. 000022EE  4217                     clr.b      [A7]
  3100. 000022F0  4EAD 0202                jsr        [A5 + 0x202 /* export_60 */]
  3101. 000022F4  4217                     clr.b      [A7]
  3102. 000022F6  4EAD 020A                jsr        [A5 + 0x20A /* export_61 */]
  3103. 000022FA  3EBC 0002                move.w     [A7], 0x2
  3104. 000022FE  4EBA 057A                jsr        [PC + 0x57A /* 0000287A */]
  3105. 00002302  486D D8C2                pea.l      [A5 - 0x273E]
  3106. 00002306  4EBA 0DA6                jsr        [PC + 0xDA6 /* 000030AE */]
  3107. 0000230A  4A2D DFBF                tst.b      [A5 - 0x2041]
  3108. 0000230E  5C8F                     addq.l     A7, 6
  3109. 00002310  6622                     bne        +0x24 /* 00002334 */
  3110. 00002312  536D DF18                subq.w     [A5 - 0x20E8], 1
  3111. 00002316  601C                     bra        +0x1E /* 00002334 */
  3112. label00002318:
  3113. 00002318  3F3C 0008                move.w     -[A7], 0x8
  3114. 0000231C  4EBA 0502                jsr        [PC + 0x502 /* 00002820 */]
  3115. 00002320  548F                     addq.l     A7, 2
  3116. 00002322  6010                     bra        +0x12 /* 00002334 */
  3117. label00002324:
  3118. 00002324  4EAD 0242                jsr        [A5 + 0x242 /* export_68 */]
  3119. 00002328  600A                     bra        +0xC /* 00002334 */
  3120. label0000232A:
  3121. 0000232A  3B7C 0003 CFDC           move.w     [A5 - 0x3024], 0x3
  3122. 00002330  426D DF18                clr.w      [A5 - 0x20E8]
  3123. label00002334:
  3124. 00002334  4E75                     rts
  3125. fn00002336:
  3126. 00002336  302D DF18                move.w     D0, [A5 - 0x20E8]
  3127. 0000233A  526D DF18                addq.w     [A5 - 0x20E8], 1
  3128. 0000233E  0C40 0007                cmpi.w     D0, 0x7
  3129. 00002342  6200 0118                bhi        +0x11A /* 0000245C */
  3130. 00002346  43FA 0120                lea.l      A1, [PC + 0x120 /* 00002468, value 0xFEEAFF4E */]
  3131. 0000234A  D040                     add.w      D0, D0
  3132. 0000234C  D2F1 0000                add.w      A1, [A1 + D0.w]
  3133. 00002350  4ED1                     jmp        [A1]
  3134. 00002352  2F2D D630                move.l     -[A7], [A5 - 0x29D0]
  3135. 00002356  3F3C 0001                move.w     -[A7], 0x1
  3136. 0000235A  A93A                     syscall    DisableItem
  3137. 0000235C  2F2D D630                move.l     -[A7], [A5 - 0x29D0]
  3138. 00002360  3F3C 0002                move.w     -[A7], 0x2
  3139. 00002364  A939                     syscall    EnableItem
  3140. 00002366  2F2D D630                move.l     -[A7], [A5 - 0x29D0]
  3141. 0000236A  3F3C 0004                move.w     -[A7], 0x4
  3142. 0000236E  A93A                     syscall    DisableItem
  3143. 00002370  2F2D D630                move.l     -[A7], [A5 - 0x29D0]
  3144. 00002374  3F3C 0005                move.w     -[A7], 0x5
  3145. 00002378  A93A                     syscall    DisableItem
  3146. 0000237A  4227                     clr.b      -[A7]
  3147. 0000237C  4EBA FC2A                jsr        [PC - 0x3D6 /* 00001FA8 */]
  3148. 00002380  2F2D D638                move.l     -[A7], [A5 - 0x29C8]
  3149. 00002384  3F3C 0001                move.w     -[A7], 0x1
  3150. 00002388  A939                     syscall    EnableItem
  3151. 0000238A  2F2D D638                move.l     -[A7], [A5 - 0x29C8]
  3152. 0000238E  3F3C 0006                move.w     -[A7], 0x6
  3153. 00002392  A939                     syscall    EnableItem
  3154. 00002394  2F3C 0003 0578           move.l     -[A7], 0x30578
  3155. 0000239A  4EAD 023A                jsr        [A5 + 0x23A /* export_67 */]
  3156. 0000239E  302D D6AA                move.w     D0, [A5 - 0x2956]
  3157. 000023A2  0640 0514                addi.w     D0, 0x514
  3158. 000023A6  3E80                     move.w     [A7], D0
  3159. 000023A8  3F3C 0002                move.w     -[A7], 0x2
  3160. 000023AC  4EAD 023A                jsr        [A5 + 0x23A /* export_67 */]
  3161. 000023B0  508F                     addq.l     A7, 8
  3162. 000023B2  6000 00B2                bra        +0xB4 /* 00002466 */
  3163. 000023B6  302D DFC2                move.w     D0, [A5 - 0x203E]
  3164. 000023BA  B06D DFE0                cmp.w      D0, [A5 - 0x2020]
  3165. 000023BE  6700 00A6                beq        +0xA8 /* 00002466 */
  3166. 000023C2  3F2D DFC2                move.w     -[A7], [A5 - 0x203E]
  3167. 000023C6  4EAD 022A                jsr        [A5 + 0x22A /* export_65 */]
  3168. 000023CA  3B6D DFC2 DFF2           move.w     [A5 - 0x200E], [A5 - 0x203E]
  3169. 000023D0  548F                     addq.l     A7, 2
  3170. 000023D2  6000 0092                bra        +0x94 /* 00002466 */
  3171. 000023D6  4EAD 024A                jsr        [A5 + 0x24A /* export_69 */]
  3172. 000023DA  422D DFC0                clr.b      [A5 - 0x2040]
  3173. 000023DE  6000 0086                bra        +0x88 /* 00002466 */
  3174. 000023E2  206D D63C                movea.l    A0, [A5 - 0x29C4]
  3175. 000023E6  2F10                     move.l     -[A7], [A0]
  3176. 000023E8  A851                     syscall    SetCursor
  3177. 000023EA  4EAD 0172                jsr        [A5 + 0x172 /* export_42 */]
  3178. 000023EE  4EAD 017A                jsr        [A5 + 0x17A /* export_43 */]
  3179. 000023F2  4EAD 0182                jsr        [A5 + 0x182 /* export_44 */]
  3180. 000023F6  A850                     syscall    InitCursor
  3181. 000023F8  606C                     bra        +0x6E /* 00002466 */
  3182. 000023FA  4EAD 01E2                jsr        [A5 + 0x1E2 /* export_56 */]
  3183. 000023FE  6066                     bra        +0x68 /* 00002466 */
  3184. 00002400  486D D6B0                pea.l      [A5 - 0x2950]
  3185. 00002404  4EBA 0CA8                jsr        [PC + 0xCA8 /* 000030AE */]
  3186. 00002408  1EBC 0001                move.b     [A7], 0x1
  3187. 0000240C  4EAD 01C2                jsr        [A5 + 0x1C2 /* export_52 */]
  3188. 00002410  2EBC 0000 FFFF           move.l     [A7], 0xFFFF
  3189. 00002416  201F                     move.l     D0, [A7]+
  3190. 00002418  A032                     syscall    FlushEvents
  3191. 0000241A  604A                     bra        +0x4C /* 00002466 */
  3192. 0000241C  3F3C 0001                move.w     -[A7], 0x1
  3193. 00002420  4EBA 0458                jsr        [PC + 0x458 /* 0000287A */]
  3194. 00002424  4217                     clr.b      [A7]
  3195. 00002426  4EAD 01C2                jsr        [A5 + 0x1C2 /* export_52 */]
  3196. 0000242A  4A2D D668                tst.b      [A5 - 0x2998]
  3197. 0000242E  548F                     addq.l     A7, 2
  3198. 00002430  6634                     bne        +0x36 /* 00002466 */
  3199. 00002432  4A2D D674                tst.b      [A5 - 0x298C]
  3200. 00002436  662E                     bne        +0x30 /* 00002466 */
  3201. 00002438  536D DF18                subq.w     [A5 - 0x20E8], 1
  3202. 0000243C  6028                     bra        +0x2A /* 00002466 */
  3203. 0000243E  486D D6B0                pea.l      [A5 - 0x2950]
  3204. 00002442  42A7                     clr.l      -[A7]
  3205. 00002444  4EAD 02BA                jsr        [A5 + 0x2BA /* export_83 */]
  3206. 00002448  3EAD D902                move.w     [A7], [A5 - 0x26FE]
  3207. 0000244C  486D D6B0                pea.l      [A5 - 0x2950]
  3208. 00002450  206D FFE8                movea.l    A0, [A5 - 0x18]
  3209. 00002454  4E90                     jsr        [A0]
  3210. 00002456  4FEF 000C                lea.l      A7, [A7 + 0xC]
  3211. 0000245A  600A                     bra        +0xC /* 00002466 */
  3212. label0000245C:
  3213. 0000245C  3B7C 0004 CFDC           move.w     [A5 - 0x3024], 0x4
  3214. 00002462  426D DF18                clr.w      [A5 - 0x20E8]
  3215. label00002466:
  3216. 00002466  4E75                     rts
  3217. 00002468  FEEA FF4E                .extension 0xEEA <<F/2-3/7>> // unimplemented
  3218. 0000246C  FF6E                     .extension 0xF6E <<F/4-5/7>> // unimplemented
  3219. 0000246E  FF7A                     .extension 0xF7A <<F/4-5/7>> // unimplemented
  3220. 00002470  FF92                     .invalid   <<F/6/7>>
  3221. 00002472  FF98                     .invalid   <<F/6/7>>
  3222. 00002474  FFB4                     .invalid   <<F/6/7>>
  3223. 00002476  FFD6                     .invalid   <<F/7/7>>
  3224. fn00002478:
  3225. 00002478  302D DF18                move.w     D0, [A5 - 0x20E8]
  3226. 0000247C  526D DF18                addq.w     [A5 - 0x20E8], 1
  3227. 00002480  4A40                     tst.w      D0
  3228. 00002482  670E                     beq        +0x10 /* 00002492 */
  3229. 00002484  6B5C                     bmi        +0x5E /* 000024E2 */
  3230. 00002486  5740                     subq.w     D0, 3
  3231. 00002488  6748                     beq        +0x4A /* 000024D2 */
  3232. 0000248A  6A56                     bpl        +0x58 /* 000024E2 */
  3233. 0000248C  5240                     addq.w     D0, 1
  3234. 0000248E  6A26                     bpl        +0x28 /* 000024B6 */
  3235. 00002490  6016                     bra        +0x18 /* 000024A8 */
  3236. label00002492:
  3237. 00002492  2F2D D630                move.l     -[A7], [A5 - 0x29D0]
  3238. 00002496  3F3C 0005                move.w     -[A7], 0x5
  3239. 0000249A  A939                     syscall    EnableItem
  3240. 0000249C  2F2D D638                move.l     -[A7], [A5 - 0x29C8]
  3241. 000024A0  3F3C 0006                move.w     -[A7], 0x6
  3242. 000024A4  A93A                     syscall    DisableItem
  3243. 000024A6  6044                     bra        +0x46 /* 000024EC */
  3244. label000024A8:
  3245. 000024A8  4EBA 0F0C                jsr        [PC + 0xF0C /* 000033B6 */]
  3246. 000024AC  42AD E00E                clr.l      [A5 - 0x1FF2]
  3247. 000024B0  426D D666                clr.w      [A5 - 0x299A]
  3248. 000024B4  6036                     bra        +0x38 /* 000024EC */
  3249. label000024B6:
  3250. 000024B6  206D D63C                movea.l    A0, [A5 - 0x29C4]
  3251. 000024BA  2F10                     move.l     -[A7], [A0]
  3252. 000024BC  A851                     syscall    SetCursor
  3253. 000024BE  4EBA 0334                jsr        [PC + 0x334 /* 000027F4 */]
  3254. 000024C2  426D DC16                clr.w      [A5 - 0x23EA]
  3255. 000024C6  426D D914                clr.w      [A5 - 0x26EC]
  3256. 000024CA  4EAD 016A                jsr        [A5 + 0x16A /* export_41 */]
  3257. 000024CE  A850                     syscall    InitCursor
  3258. 000024D0  601A                     bra        +0x1C /* 000024EC */
  3259. label000024D2:
  3260. 000024D2  3F3C 0004                move.w     -[A7], 0x4
  3261. 000024D6  4EBA 0374                jsr        [PC + 0x374 /* 0000284C */]
  3262. 000024DA  4EAD 0222                jsr        [A5 + 0x222 /* export_64 */]
  3263. 000024DE  548F                     addq.l     A7, 2
  3264. 000024E0  600A                     bra        +0xC /* 000024EC */
  3265. label000024E2:
  3266. 000024E2  3B7C 0005 CFDC           move.w     [A5 - 0x3024], 0x5
  3267. 000024E8  426D DF18                clr.w      [A5 - 0x20E8]
  3268. label000024EC:
  3269. 000024EC  4E75                     rts
  3270. fn000024EE:
  3271. 000024EE  2F07                     move.l     -[A7], D7
  3272. 000024F0  4A2D D677                tst.b      [A5 - 0x2989]
  3273. 000024F4  6604                     bne        +0x6 /* 000024FA */
  3274. 000024F6  7E01                     moveq.l    D7, 0x01
  3275. 000024F8  6002                     bra        +0x4 /* 000024FC */
  3276. label000024FA:
  3277. 000024FA  7E08                     moveq.l    D7, 0x08
  3278. label000024FC:
  3279. 000024FC  4EAD 021A                jsr        [A5 + 0x21A /* export_63 */]
  3280. 00002500  6016                     bra        +0x18 /* 00002518 */
  3281. label00002502:
  3282. 00002502  4EAD 0252                jsr        [A5 + 0x252 /* export_70 */]
  3283. 00002506  4EAD 025A                jsr        [A5 + 0x25A /* export_71 */]
  3284. 0000250A  4EAD 0152                jsr        [A5 + 0x152 /* export_38 */]
  3285. 0000250E  4EAD 015A                jsr        [A5 + 0x15A /* export_39 */]
  3286. 00002512  4EAD 0192                jsr        [A5 + 0x192 /* export_46 */]
  3287. 00002516  5347                     subq.w     D7, 1
  3288. label00002518:
  3289. 00002518  4A47                     tst.w      D7
  3290. 0000251A  66E6                     bne        -0x18 /* 00002502 */
  3291. 0000251C  4EAD 018A                jsr        [A5 + 0x18A /* export_45 */]
  3292. 00002520  4EAD 019A                jsr        [A5 + 0x19A /* export_47 */]
  3293. 00002524  4EAD 0262                jsr        [A5 + 0x262 /* export_72 */]
  3294. 00002528  4EAD 01A2                jsr        [A5 + 0x1A2 /* export_48 */]
  3295. 0000252C  4EAD 01AA                jsr        [A5 + 0x1AA /* export_49 */]
  3296. 00002530  4EAD 01BA                jsr        [A5 + 0x1BA /* export_51 */]
  3297. 00002534  3F3C 0003                move.w     -[A7], 0x3
  3298. 00002538  4EBA 0340                jsr        [PC + 0x340 /* 0000287A */]
  3299. 0000253C  4EAD 0222                jsr        [A5 + 0x222 /* export_64 */]
  3300. 00002540  4EAD 026A                jsr        [A5 + 0x26A /* export_73 */]
  3301. 00002544  4EBA 0F80                jsr        [PC + 0xF80 /* 000034C6 */]
  3302. 00002548  4EBA 0FE2                jsr        [PC + 0xFE2 /* 0000352C */]
  3303. 0000254C  4A2D DFBC                tst.b      [A5 - 0x2044]
  3304. 00002550  548F                     addq.l     A7, 2
  3305. 00002552  6606                     bne        +0x8 /* 0000255A */
  3306. 00002554  4A2D DFBE                tst.b      [A5 - 0x2042]
  3307. 00002558  670A                     beq        +0xC /* 00002564 */
  3308. label0000255A:
  3309. 0000255A  3B7C 0006 CFDC           move.w     [A5 - 0x3024], 0x6
  3310. 00002560  426D DF18                clr.w      [A5 - 0x20E8]
  3311. label00002564:
  3312. 00002564  2E1F                     move.l     D7, [A7]+
  3313. 00002566  4E75                     rts
  3314. fn00002568:
  3315. 00002568  302D DF18                move.w     D0, [A5 - 0x20E8]
  3316. 0000256C  526D DF18                addq.w     [A5 - 0x20E8], 1
  3317. 00002570  4A40                     tst.w      D0
  3318. 00002572  670A                     beq        +0xC /* 0000257E */
  3319. 00002574  6B76                     bmi        +0x78 /* 000025EC */
  3320. 00002576  5540                     subq.w     D0, 2
  3321. 00002578  675A                     beq        +0x5C /* 000025D4 */
  3322. 0000257A  6A70                     bpl        +0x72 /* 000025EC */
  3323. 0000257C  603A                     bra        +0x3C /* 000025B8 */
  3324. label0000257E:
  3325. 0000257E  302D DFC6                move.w     D0, [A5 - 0x203A]
  3326. 00002582  B06D DFC8                cmp.w      D0, [A5 - 0x2038]
  3327. 00002586  6D26                     blt        +0x28 /* 000025AE */
  3328. 00002588  4EAD 0232                jsr        [A5 + 0x232 /* export_66 */]
  3329. 0000258C  526D DFC2                addq.w     [A5 - 0x203E], 1
  3330. 00002590  302D DFC2                move.w     D0, [A5 - 0x203E]
  3331. 00002594  48C0                     ext.l      D0
  3332. 00002596  81FC 001E                divs.w     D0, 0x1E
  3333. 0000259A  3B40 DFF2                move.w     [A5 - 0x200E], D0
  3334. 0000259E  4EAD 02A2                jsr        [A5 + 0x2A2 /* export_80 */]
  3335. 000025A2  426D CFE4                clr.w      [A5 - 0x301C]
  3336. 000025A6  1B7C 0001 DFC0           move.b     [A5 - 0x2040], 0x1
  3337. 000025AC  6068                     bra        +0x6A /* 00002616 */
  3338. label000025AE:
  3339. 000025AE  526D CFE4                addq.w     [A5 - 0x301C], 1
  3340. 000025B2  422D DFC0                clr.b      [A5 - 0x2040]
  3341. 000025B6  605E                     bra        +0x60 /* 00002616 */
  3342. label000025B8:
  3343. 000025B8  A850                     syscall    InitCursor
  3344. 000025BA  426D D666                clr.w      [A5 - 0x299A]
  3345. 000025BE  2F2D D630                move.l     -[A7], [A5 - 0x29D0]
  3346. 000025C2  3F3C 0005                move.w     -[A7], 0x5
  3347. 000025C6  A93A                     syscall    DisableItem
  3348. 000025C8  2F2D D638                move.l     -[A7], [A5 - 0x29C8]
  3349. 000025CC  3F3C 0006                move.w     -[A7], 0x6
  3350. 000025D0  A939                     syscall    EnableItem
  3351. 000025D2  6042                     bra        +0x44 /* 00002616 */
  3352. label000025D4:
  3353. 000025D4  3F3C 0010                move.w     -[A7], 0x10
  3354. 000025D8  4EBA 0F7C                jsr        [PC + 0xF7C /* 00003556 */]
  3355. 000025DC  3EBC 0010                move.w     [A7], 0x10
  3356. 000025E0  4EBA 023E                jsr        [PC + 0x23E /* 00002820 */]
  3357. 000025E4  4EBA 0E04                jsr        [PC + 0xE04 /* 000033EA */]
  3358. 000025E8  548F                     addq.l     A7, 2
  3359. 000025EA  602A                     bra        +0x2C /* 00002616 */
  3360. label000025EC:
  3361. 000025EC  0C6D 0078 DFC2           cmpi.w     [A5 - 0x203E], 0x78 /* 'x' */
  3362. 000025F2  6C18                     bge        +0x1A /* 0000260C */
  3363. 000025F4  302D DFC2                move.w     D0, [A5 - 0x203E]
  3364. 000025F8  204D                     movea.l    A0, A5
  3365. 000025FA  D0C0                     add.w      A0, D0
  3366. 000025FC  D0C0                     add.w      A0, D0
  3367. 000025FE  4A68 E012                tst.w      [A0 - 0x1FEE]
  3368. 00002602  6F08                     ble        +0xA /* 0000260C */
  3369. 00002604  3B7C 0007 CFDC           move.w     [A5 - 0x3024], 0x7
  3370. 0000260A  6006                     bra        +0x8 /* 00002612 */
  3371. label0000260C:
  3372. 0000260C  3B7C 0008 CFDC           move.w     [A5 - 0x3024], 0x8
  3373. label00002612:
  3374. 00002612  426D DF18                clr.w      [A5 - 0x20E8]
  3375. label00002616:
  3376. 00002616  4E75                     rts
  3377. fn00002618:
  3378. 00002618  302D DF18                move.w     D0, [A5 - 0x20E8]
  3379. 0000261C  526D DF18                addq.w     [A5 - 0x20E8], 1
  3380. 00002620  4A40                     tst.w      D0
  3381. 00002622  670E                     beq        +0x10 /* 00002632 */
  3382. 00002624  6B50                     bmi        +0x52 /* 00002676 */
  3383. 00002626  5740                     subq.w     D0, 3
  3384. 00002628  6746                     beq        +0x48 /* 00002670 */
  3385. 0000262A  6A4A                     bpl        +0x4C /* 00002676 */
  3386. 0000262C  5240                     addq.w     D0, 1
  3387. 0000262E  6A22                     bpl        +0x24 /* 00002652 */
  3388. 00002630  6006                     bra        +0x8 /* 00002638 */
  3389. label00002632:
  3390. 00002632  4EBA 01C0                jsr        [PC + 0x1C0 /* 000027F4 */]
  3391. 00002636  6048                     bra        +0x4A /* 00002680 */
  3392. label00002638:
  3393. 00002638  4EAD 01EA                jsr        [A5 + 0x1EA /* export_57 */]
  3394. 0000263C  3F3C 0008                move.w     -[A7], 0x8
  3395. 00002640  4EBA 020A                jsr        [PC + 0x20A /* 0000284C */]
  3396. 00002644  2F3C 0000 FFFF           move.l     -[A7], 0xFFFF
  3397. 0000264A  201F                     move.l     D0, [A7]+
  3398. 0000264C  A032                     syscall    FlushEvents
  3399. 0000264E  548F                     addq.l     A7, 2
  3400. 00002650  602E                     bra        +0x30 /* 00002680 */
  3401. label00002652:
  3402. 00002652  4A2D D668                tst.b      [A5 - 0x2998]
  3403. 00002656  6606                     bne        +0x8 /* 0000265E */
  3404. 00002658  4A2D D674                tst.b      [A5 - 0x298C]
  3405. 0000265C  670C                     beq        +0xE /* 0000266A */
  3406. label0000265E:
  3407. 0000265E  3F3C 0004                move.w     -[A7], 0x4
  3408. 00002662  4EBA 01BC                jsr        [PC + 0x1BC /* 00002820 */]
  3409. 00002666  548F                     addq.l     A7, 2
  3410. 00002668  6016                     bra        +0x18 /* 00002680 */
  3411. label0000266A:
  3412. 0000266A  536D DF18                subq.w     [A5 - 0x20E8], 1
  3413. 0000266E  6010                     bra        +0x12 /* 00002680 */
  3414. label00002670:
  3415. 00002670  4EBA F6BC                jsr        [PC - 0x944 /* 00001D2E */]
  3416. 00002674  600A                     bra        +0xC /* 00002680 */
  3417. label00002676:
  3418. 00002676  3B7C 0003 CFDC           move.w     [A5 - 0x3024], 0x3
  3419. 0000267C  426D DF18                clr.w      [A5 - 0x20E8]
  3420. label00002680:
  3421. 00002680  4E75                     rts
  3422. fn00002682:
  3423. 00002682  302D DF18                move.w     D0, [A5 - 0x20E8]
  3424. 00002686  526D DF18                addq.w     [A5 - 0x20E8], 1
  3425. 0000268A  4A40                     tst.w      D0
  3426. 0000268C  670A                     beq        +0xC /* 00002698 */
  3427. 0000268E  6B66                     bmi        +0x68 /* 000026F6 */
  3428. 00002690  5540                     subq.w     D0, 2
  3429. 00002692  6734                     beq        +0x36 /* 000026C8 */
  3430. 00002694  6A60                     bpl        +0x62 /* 000026F6 */
  3431. 00002696  6006                     bra        +0x8 /* 0000269E */
  3432. label00002698:
  3433. 00002698  4EBA 015A                jsr        [PC + 0x15A /* 000027F4 */]
  3434. 0000269C  6062                     bra        +0x64 /* 00002700 */
  3435. label0000269E:
  3436. 0000269E  2F2D D630                move.l     -[A7], [A5 - 0x29D0]
  3437. 000026A2  4267                     clr.w      -[A7]
  3438. 000026A4  A93A                     syscall    DisableItem
  3439. 000026A6  2F2D D638                move.l     -[A7], [A5 - 0x29C8]
  3440. 000026AA  4267                     clr.w      -[A7]
  3441. 000026AC  A93A                     syscall    DisableItem
  3442. 000026AE  4EAD 01F2                jsr        [A5 + 0x1F2 /* export_58 */]
  3443. 000026B2  3F3C 0008                move.w     -[A7], 0x8
  3444. 000026B6  4EBA 0194                jsr        [PC + 0x194 /* 0000284C */]
  3445. 000026BA  2F3C 0000 FFFF           move.l     -[A7], 0xFFFF
  3446. 000026C0  201F                     move.l     D0, [A7]+
  3447. 000026C2  A032                     syscall    FlushEvents
  3448. 000026C4  548F                     addq.l     A7, 2
  3449. 000026C6  6038                     bra        +0x3A /* 00002700 */
  3450. label000026C8:
  3451. 000026C8  4A2D D668                tst.b      [A5 - 0x2998]
  3452. 000026CC  6606                     bne        +0x8 /* 000026D4 */
  3453. 000026CE  4A2D D674                tst.b      [A5 - 0x298C]
  3454. 000026D2  671C                     beq        +0x1E /* 000026F0 */
  3455. label000026D4:
  3456. 000026D4  3F3C 0010                move.w     -[A7], 0x10
  3457. 000026D8  4EBA 0146                jsr        [PC + 0x146 /* 00002820 */]
  3458. 000026DC  2F2D D630                move.l     -[A7], [A5 - 0x29D0]
  3459. 000026E0  4267                     clr.w      -[A7]
  3460. 000026E2  A939                     syscall    EnableItem
  3461. 000026E4  2F2D D638                move.l     -[A7], [A5 - 0x29C8]
  3462. 000026E8  4267                     clr.w      -[A7]
  3463. 000026EA  A939                     syscall    EnableItem
  3464. 000026EC  548F                     addq.l     A7, 2
  3465. 000026EE  6010                     bra        +0x12 /* 00002700 */
  3466. label000026F0:
  3467. 000026F0  536D DF18                subq.w     [A5 - 0x20E8], 1
  3468. 000026F4  600A                     bra        +0xC /* 00002700 */
  3469. label000026F6:
  3470. 000026F6  3B7C 0009 CFDC           move.w     [A5 - 0x3024], 0x9 /* '\t' */
  3471. 000026FC  426D DF18                clr.w      [A5 - 0x20E8]
  3472. label00002700:
  3473. 00002700  4E75                     rts
  3474. fn00002702:
  3475. 00002702  302D DF18                move.w     D0, [A5 - 0x20E8]
  3476. 00002706  526D DF18                addq.w     [A5 - 0x20E8], 1
  3477. 0000270A  4A40                     tst.w      D0
  3478. 0000270C  6708                     beq        +0xA /* 00002716 */
  3479. 0000270E  6B24                     bmi        +0x26 /* 00002734 */
  3480. 00002710  5540                     subq.w     D0, 2
  3481. 00002712  6A20                     bpl        +0x22 /* 00002734 */
  3482. 00002714  6010                     bra        +0x12 /* 00002726 */
  3483. label00002716:
  3484. 00002716  4EBA 0CD2                jsr        [PC + 0xCD2 /* 000033EA */]
  3485. 0000271A  4EBA 00D8                jsr        [PC + 0xD8 /* 000027F4 */]
  3486. 0000271E  A850                     syscall    InitCursor
  3487. 00002720  426D D666                clr.w      [A5 - 0x299A]
  3488. 00002724  6018                     bra        +0x1A /* 0000273E */
  3489. label00002726:
  3490. 00002726  4EAD 0232                jsr        [A5 + 0x232 /* export_66 */]
  3491. 0000272A  4EAD 0242                jsr        [A5 + 0x242 /* export_68 */]
  3492. 0000272E  422D DFBF                clr.b      [A5 - 0x2041]
  3493. 00002732  600A                     bra        +0xC /* 0000273E */
  3494. label00002734:
  3495. 00002734  3B7C 0001 CFDC           move.w     [A5 - 0x3024], 0x1
  3496. 0000273A  426D DF18                clr.w      [A5 - 0x20E8]
  3497. label0000273E:
  3498. 0000273E  4E75                     rts
  3499. fn00002740:
  3500. 00002740  302D DF18                move.w     D0, [A5 - 0x20E8]
  3501. 00002744  526D DF18                addq.w     [A5 - 0x20E8], 1
  3502. 00002748  4A40                     tst.w      D0
  3503. 0000274A  671A                     beq        +0x1C /* 00002766 */
  3504. 0000274C  6B00 009E                bmi        +0xA0 /* 000027EC */
  3505. 00002750  5740                     subq.w     D0, 3
  3506. 00002752  6774                     beq        +0x76 /* 000027C8 */
  3507. 00002754  6A06                     bpl        +0x8 /* 0000275C */
  3508. 00002756  5240                     addq.w     D0, 1
  3509. 00002758  6A44                     bpl        +0x46 /* 0000279E */
  3510. 0000275A  6022                     bra        +0x24 /* 0000277E */
  3511. label0000275C:
  3512. 0000275C  5540                     subq.w     D0, 2
  3513. 0000275E  6A00 008C                bpl        +0x8E /* 000027EC */
  3514. 00002762  6000 0082                bra        +0x84 /* 000027E6 */
  3515. label00002766:
  3516. 00002766  4EBA 0C82                jsr        [PC + 0xC82 /* 000033EA */]
  3517. 0000276A  4EBA 0088                jsr        [PC + 0x88 /* 000027F4 */]
  3518. 0000276E  A850                     syscall    InitCursor
  3519. 00002770  426D D666                clr.w      [A5 - 0x299A]
  3520. 00002774  4EAD 0232                jsr        [A5 + 0x232 /* export_66 */]
  3521. 00002778  4EAD 0242                jsr        [A5 + 0x242 /* export_68 */]
  3522. 0000277C  6074                     bra        +0x76 /* 000027F2 */
  3523. label0000277E:
  3524. 0000277E  2F3C 0003 0578           move.l     -[A7], 0x30578
  3525. 00002784  4EAD 023A                jsr        [A5 + 0x23A /* export_67 */]
  3526. 00002788  302D D6AA                move.w     D0, [A5 - 0x2956]
  3527. 0000278C  0640 0514                addi.w     D0, 0x514
  3528. 00002790  3E80                     move.w     [A7], D0
  3529. 00002792  3F3C 0002                move.w     -[A7], 0x2
  3530. 00002796  4EAD 023A                jsr        [A5 + 0x23A /* export_67 */]
  3531. 0000279A  5C8F                     addq.l     A7, 6
  3532. 0000279C  6054                     bra        +0x56 /* 000027F2 */
  3533. label0000279E:
  3534. 0000279E  2F2D D630                move.l     -[A7], [A5 - 0x29D0]
  3535. 000027A2  4267                     clr.w      -[A7]
  3536. 000027A4  A93A                     syscall    DisableItem
  3537. 000027A6  2F2D D638                move.l     -[A7], [A5 - 0x29C8]
  3538. 000027AA  4267                     clr.w      -[A7]
  3539. 000027AC  A93A                     syscall    DisableItem
  3540. 000027AE  4EAD 01DA                jsr        [A5 + 0x1DA /* export_55 */]
  3541. 000027B2  3F3C 0004                move.w     -[A7], 0x4
  3542. 000027B6  4EBA 0094                jsr        [PC + 0x94 /* 0000284C */]
  3543. 000027BA  2F3C 0000 FFFF           move.l     -[A7], 0xFFFF
  3544. 000027C0  201F                     move.l     D0, [A7]+
  3545. 000027C2  A032                     syscall    FlushEvents
  3546. 000027C4  548F                     addq.l     A7, 2
  3547. 000027C6  602A                     bra        +0x2C /* 000027F2 */
  3548. label000027C8:
  3549. 000027C8  4A2D D668                tst.b      [A5 - 0x2998]
  3550. 000027CC  6606                     bne        +0x8 /* 000027D4 */
  3551. 000027CE  4A2D D674                tst.b      [A5 - 0x298C]
  3552. 000027D2  670C                     beq        +0xE /* 000027E0 */
  3553. label000027D4:
  3554. 000027D4  3F3C 0004                move.w     -[A7], 0x4
  3555. 000027D8  4EBA 0046                jsr        [PC + 0x46 /* 00002820 */]
  3556. 000027DC  548F                     addq.l     A7, 2
  3557. 000027DE  6012                     bra        +0x14 /* 000027F2 */
  3558. label000027E0:
  3559. 000027E0  536D DF18                subq.w     [A5 - 0x20E8], 1
  3560. 000027E4  600C                     bra        +0xE /* 000027F2 */
  3561. label000027E6:
  3562. 000027E6  4EAD 0242                jsr        [A5 + 0x242 /* export_68 */]
  3563. 000027EA  6006                     bra        +0x8 /* 000027F2 */
  3564. label000027EC:
  3565. 000027EC  1B7C 0001 CE68           move.b     [A5 - 0x3198], 0x1
  3566. label000027F2:
  3567. 000027F2  4E75                     rts
  3568. fn000027F4:
  3569. 000027F4  486D D6B0                pea.l      [A5 - 0x2950]
  3570. 000027F8  42A7                     clr.l      -[A7]
  3571. 000027FA  4EAD 02BA                jsr        [A5 + 0x2BA /* export_83 */]
  3572. 000027FE  3EAD D902                move.w     [A7], [A5 - 0x26FE]
  3573. 00002802  486D D6B0                pea.l      [A5 - 0x2950]
  3574. 00002806  206D FFE8                movea.l    A0, [A5 - 0x18]
  3575. 0000280A  4E90                     jsr        [A0]
  3576. 0000280C  426D D914                clr.w      [A5 - 0x26EC]
  3577. 00002810  426D DC16                clr.w      [A5 - 0x23EA]
  3578. 00002814  486D D6B0                pea.l      [A5 - 0x2950]
  3579. 00002818  A8A2                     syscall    PaintRect
  3580. 0000281A  4FEF 000C                lea.l      A7, [A7 + 0xC]
  3581. 0000281E  4E75                     rts
  3582. fn00002820:
  3583. 00002820  4E56 0000                link       A6, 0
  3584. 00002824  203C 0000 0100           move.l     D0, 0x100
  3585. 0000282A  81EE 0008                divs.w     D0, [A6 + 0x8]
  3586. 0000282E  4440                     neg.w      D0
  3587. 00002830  3F00                     move.w     -[A7], D0
  3588. 00002832  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  3589. 00002836  4EBA 0966                jsr        [PC + 0x966 /* 0000319E */]
  3590. 0000283A  4EBA FFB8                jsr        [PC - 0x48 /* 000027F4 */]
  3591. 0000283E  2EBC 0001 0100           move.l     [A7], 0x10100
  3592. 00002844  4EBA 0958                jsr        [PC + 0x958 /* 0000319E */]
  3593. 00002848  4E5E                     unlink     A6
  3594. 0000284A  4E75                     rts
  3595. fn0000284C:
  3596. 0000284C  4E56 0000                link       A6, 0
  3597. 00002850  2F3C 0001 FF00           move.l     -[A7], 0x1FF00
  3598. 00002856  4EBA 0946                jsr        [PC + 0x946 /* 0000319E */]
  3599. 0000285A  486D D6B0                pea.l      [A5 - 0x2950]
  3600. 0000285E  4EBA 084E                jsr        [PC + 0x84E /* 000030AE */]
  3601. 00002862  203C 0000 0100           move.l     D0, 0x100
  3602. 00002868  81EE 0008                divs.w     D0, [A6 + 0x8]
  3603. 0000286C  3E80                     move.w     [A7], D0
  3604. 0000286E  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  3605. 00002872  4EBA 092A                jsr        [PC + 0x92A /* 0000319E */]
  3606. 00002876  4E5E                     unlink     A6
  3607. 00002878  4E75                     rts
  3608. fn0000287A:
  3609. 0000287A  4E56 0000                link       A6, 0
  3610. 0000287E  2F07                     move.l     -[A7], D7
  3611. 00002880  306E 0008                movea.w    A0, [A6 + 0x8]
  3612. 00002884  D1ED D616                add.l      A0, [A5 - 0x29EA]
  3613. 00002888  2E08                     move.l     D7, A0
  3614. label0000288A:
  3615. 0000288A  42A7                     clr.l      -[A7]
  3616. 0000288C  A975                     syscall    TickCount
  3617. 0000288E  BE9F                     cmp.l      D7, [A7]+
  3618. 00002890  64F8                     bcc        -0x6 /* 0000288A */
  3619. 00002892  2E1F                     move.l     D7, [A7]+
  3620. 00002894  4E5E                     unlink     A6
  3621. 00002896  4E75                     rts
  3622. export_10:
  3623. fn00002898:
  3624. 00002898  4E56 0000                link       A6, 0
  3625. 0000289C  202D CE92                move.l     D0, [A5 - 0x316E]
  3626. 000028A0  2200                     move.l     D1, D0
  3627. 000028A2  242D CE96                move.l     D2, [A5 - 0x316A]
  3628. 000028A6  B540                     xor.w      D0, D2
  3629. 000028A8  5E42                     addq.w     D2, 7
  3630. 000028AA  4841                     swap.w     D1
  3631. 000028AC  D041                     add.w      D0, D1
  3632. 000028AE  4842                     swap.w     D2
  3633. 000028B0  C0C2                     mulu.w     D0, D2
  3634. 000028B2  E75A                     rol        D2.w, 3
  3635. 000028B4  4842                     swap.w     D2
  3636. 000028B6  2B42 CE96                move.l     [A5 - 0x316A], D2
  3637. 000028BA  2B40 CE92                move.l     [A5 - 0x316E], D0
  3638. 000028BE  4841                     swap.w     D1
  3639. 000028C0  D041                     add.w      D0, D1
  3640. 000028C2  322E 0008                move.w     D1, [A6 + 0x8]
  3641. 000028C6  5241                     addq.w     D1, 1
  3642. 000028C8  C0C1                     mulu.w     D0, D1
  3643. 000028CA  4240                     clr.w      D0
  3644. 000028CC  4840                     swap.w     D0
  3645. 000028CE  4E5E                     unlink     A6
  3646. 000028D0  4E75                     rts
  3647. export_11:
  3648. 000028D2  4E56 0000                link       A6, 0
  3649. 000028D6  206E 0008                movea.l    A0, [A6 + 0x8]
  3650. 000028DA  222E 000C                move.l     D1, [A6 + 0xC]
  3651. 000028DE  2008                     move.l     D0, A0
  3652. 000028E0  E248                     lsr        D0.w, 1
  3653. 000028E2  6406                     bcc        +0x8 /* 000028EA */
  3654. 000028E4  5381                     subq.l     D1, 1
  3655. 000028E6  6B1C                     bmi        +0x1E /* 00002904 */
  3656. 000028E8  4218                     clr.b      [A0]+
  3657. label000028EA:
  3658. 000028EA  7000                     moveq.l    D0, 0x00
  3659. 000028EC  5981                     subq.l     D1, 4
  3660. 000028EE  6B06                     bmi        +0x8 /* 000028F6 */
  3661. label000028F0:
  3662. 000028F0  20C0                     move.l     [A0]+, D0
  3663. 000028F2  5981                     subq.l     D1, 4
  3664. 000028F4  6AFA                     bpl        -0x4 /* 000028F0 */
  3665. label000028F6:
  3666. 000028F6  5441                     addq.w     D1, 2
  3667. 000028F8  6B04                     bmi        +0x6 /* 000028FE */
  3668. 000028FA  30C0                     move.w     [A0]+, D0
  3669. 000028FC  5541                     subq.w     D1, 2
  3670. label000028FE:
  3671. 000028FE  5241                     addq.w     D1, 1
  3672. 00002900  6B02                     bmi        +0x4 /* 00002904 */
  3673. 00002902  10C0                     move.b     [A0]+, D0
  3674. label00002904:
  3675. 00002904  4E5E                     unlink     A6
  3676. 00002906  4E75                     rts
  3677. export_12:
  3678. fn00002908:
  3679. 00002908  4E56 0000                link       A6, 0
  3680. 0000290C  226E 0008                movea.l    A1, [A6 + 0x8]
  3681. 00002910  206E 000C                movea.l    A0, [A6 + 0xC]
  3682. 00002914  202E 0010                move.l     D0, [A6 + 0x10]
  3683. 00002918  6002                     bra        +0x4 /* 0000291C */
  3684. label0000291A:
  3685. 0000291A  10D9                     move.b     [A0]+, [A1]+
  3686. label0000291C:
  3687. 0000291C  5380                     subq.l     D0, 1
  3688. 0000291E  6AFA                     bpl        -0x4 /* 0000291A */
  3689. 00002920  4E5E                     unlink     A6
  3690. 00002922  4E75                     rts
  3691. export_13:
  3692. fn00002924:
  3693. 00002924  4E56 0000                link       A6, 0
  3694. 00002928  226E 0008                movea.l    A1, [A6 + 0x8]
  3695. 0000292C  206E 000C                movea.l    A0, [A6 + 0xC]
  3696. 00002930  6002                     bra        +0x4 /* 00002934 */
  3697. label00002932:
  3698. 00002932  10C0                     move.b     [A0]+, D0
  3699. label00002934:
  3700. 00002934  1019                     move.b     D0, [A1]+
  3701. 00002936  66FA                     bne        -0x4 /* 00002932 */
  3702. 00002938  4E5E                     unlink     A6
  3703. 0000293A  4E75                     rts
  3704. export_14:
  3705. 0000293C  4E56 FFF8                link       A6, -0x0008
  3706. 00002940  48E7 1F00                movem.l    -[A7], D3,D4,D5,D6,D7
  3707. 00002944  3E2E 000E                move.w     D7, [A6 + 0xE]
  3708. 00002948  4A47                     tst.w      D7
  3709. 0000294A  6F06                     ble        +0x8 /* 00002952 */
  3710. 0000294C  3C07                     move.w     D6, D7
  3711. 0000294E  7E01                     moveq.l    D7, 0x01
  3712. 00002950  6006                     bra        +0x8 /* 00002958 */
  3713. label00002952:
  3714. 00002952  3C07                     move.w     D6, D7
  3715. 00002954  4446                     neg.w      D6
  3716. 00002956  7E00                     moveq.l    D7, 0x00
  3717. label00002958:
  3718. 00002958  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  3719. 0000295C  4EBA 006A                jsr        [PC + 0x6A /* 000029C8 */]
  3720. 00002960  2A00                     move.l     D5, D0
  3721. 00002962  2805                     move.l     D4, D5
  3722. 00002964  7018                     moveq.l    D0, 0x18
  3723. 00002966  E0AC                     lsr        D4, D0
  3724. 00002968  2005                     move.l     D0, D5
  3725. 0000296A  7210                     moveq.l    D1, 0x10
  3726. 0000296C  E2A8                     lsr        D0, D1
  3727. 0000296E  2D40 FFF8                move.l     [A6 - 0x8], D0
  3728. 00002972  2205                     move.l     D1, D5
  3729. 00002974  E089                     lsr        D1, 8
  3730. 00002976  2D41 FFFC                move.l     [A6 - 0x4], D1
  3731. 0000297A  548F                     addq.l     A7, 2
  3732. 0000297C  603E                     bra        +0x40 /* 000029BC */
  3733. label0000297E:
  3734. 0000297E  0C46 0004                cmpi.w     D6, 0x4
  3735. 00002982  6602                     bne        +0x4 /* 00002986 */
  3736. 00002984  1604                     move.b     D3, D4
  3737. label00002986:
  3738. 00002986  0C46 0003                cmpi.w     D6, 0x3
  3739. 0000298A  6604                     bne        +0x6 /* 00002990 */
  3740. 0000298C  162E FFFB                move.b     D3, [A6 - 0x5]
  3741. label00002990:
  3742. 00002990  0C46 0002                cmpi.w     D6, 0x2
  3743. 00002994  6604                     bne        +0x6 /* 0000299A */
  3744. 00002996  162E FFFF                move.b     D3, [A6 - 0x1]
  3745. label0000299A:
  3746. 0000299A  0C46 0001                cmpi.w     D6, 0x1
  3747. 0000299E  6602                     bne        +0x4 /* 000029A2 */
  3748. 000029A0  1605                     move.b     D3, D5
  3749. label000029A2:
  3750. 000029A2  0C07 0001                cmpi.b     D7, 0x1
  3751. 000029A6  6608                     bne        +0xA /* 000029B0 */
  3752. 000029A8  0C03 0020                cmpi.b     D3, 0x20 /* ' ' */
  3753. 000029AC  6602                     bne        +0x4 /* 000029B0 */
  3754. 000029AE  767F                     moveq.l    D3, 0x7F
  3755. label000029B0:
  3756. 000029B0  206E 000A                movea.l    A0, [A6 + 0xA]
  3757. 000029B4  52AE 000A                addq.l     [A6 + 0xA], 1
  3758. 000029B8  1083                     move.b     [A0], D3
  3759. 000029BA  5346                     subq.w     D6, 1
  3760. label000029BC:
  3761. 000029BC  4A46                     tst.w      D6
  3762. 000029BE  66BE                     bne        -0x40 /* 0000297E */
  3763. 000029C0  4CDF 00F8                movem.l    D3,D4,D5,D6,D7, [A7]+
  3764. 000029C4  4E5E                     unlink     A6
  3765. 000029C6  4E75                     rts
  3766. fn000029C8:
  3767. 000029C8  4E56 0000                link       A6, 0
  3768. 000029CC  342E 0008                move.w     D2, [A6 + 0x8]
  3769. 000029D0  7220                     moveq.l    D1, 0x20
  3770. 000029D2  1001                     move.b     D0, D1
  3771. 000029D4  48C2                     ext.l      D2
  3772. 000029D6  84FC 03E8                divu.w     D2, 0x3E8
  3773. 000029DA  6706                     beq        +0x8 /* 000029E2 */
  3774. 000029DC  7230                     moveq.l    D1, 0x30
  3775. 000029DE  D401                     add.b      D2, D1
  3776. 000029E0  1002                     move.b     D0, D2
  3777. label000029E2:
  3778. 000029E2  E188                     lsl        D0, 8
  3779. 000029E4  1001                     move.b     D0, D1
  3780. 000029E6  4842                     swap.w     D2
  3781. 000029E8  48C2                     ext.l      D2
  3782. 000029EA  84FC 0064                divu.w     D2, 0x64 /* 'd' */
  3783. 000029EE  6706                     beq        +0x8 /* 000029F6 */
  3784. 000029F0  7230                     moveq.l    D1, 0x30
  3785. 000029F2  D401                     add.b      D2, D1
  3786. 000029F4  1002                     move.b     D0, D2
  3787. label000029F6:
  3788. 000029F6  E188                     lsl        D0, 8
  3789. 000029F8  1001                     move.b     D0, D1
  3790. 000029FA  4842                     swap.w     D2
  3791. 000029FC  48C2                     ext.l      D2
  3792. 000029FE  84FC 000A                divu.w     D2, 0xA /* '\n' */
  3793. 00002A02  6706                     beq        +0x8 /* 00002A0A */
  3794. 00002A04  7230                     moveq.l    D1, 0x30
  3795. 00002A06  D401                     add.b      D2, D1
  3796. 00002A08  1002                     move.b     D0, D2
  3797. label00002A0A:
  3798. 00002A0A  E188                     lsl        D0, 8
  3799. 00002A0C  4842                     swap.w     D2
  3800. 00002A0E  7230                     moveq.l    D1, 0x30
  3801. 00002A10  D401                     add.b      D2, D1
  3802. 00002A12  1002                     move.b     D0, D2
  3803. 00002A14  4E5E                     unlink     A6
  3804. 00002A16  4E75                     rts
  3805. 00002A18  4E56 0000                link       A6, 0
  3806. 00002A1C  48E7 0108                movem.l    -[A7], D7,A4
  3807. 00002A20  7E00                     moveq.l    D7, 0x00
  3808. 00002A22  286E 000C                movea.l    A4, [A6 + 0xC]
  3809. 00002A26  601E                     bra        +0x20 /* 00002A46 */
  3810. label00002A28:
  3811. 00002A28  5207                     addq.b     D7, 1
  3812. 00002A2A  7000                     moveq.l    D0, 0x00
  3813. 00002A2C  1007                     move.b     D0, D7
  3814. 00002A2E  D0AE 000C                add.l      D0, [A6 + 0xC]
  3815. 00002A32  2040                     movea.l    A0, D0
  3816. 00002A34  226E 0008                movea.l    A1, [A6 + 0x8]
  3817. 00002A38  5211                     addq.b     [A1], 1
  3818. 00002A3A  1011                     move.b     D0, [A1]
  3819. 00002A3C  4880                     ext.w      D0
  3820. 00002A3E  226E 0008                movea.l    A1, [A6 + 0x8]
  3821. 00002A42  1390 0000                move.b     [A1 + D0.w], [A0]
  3822. label00002A46:
  3823. 00002A46  BE14                     cmp.b      D7, [A4]
  3824. 00002A48  65DE                     bcs        -0x20 /* 00002A28 */
  3825. 00002A4A  4CDF 1080                movem.l    D7,A4, [A7]+
  3826. 00002A4E  4E5E                     unlink     A6
  3827. 00002A50  4E75                     rts
  3828. fn00002A52:
  3829. 00002A52  4E56 FFFC                link       A6, -0x0004
  3830. 00002A56  2F07                     move.l     -[A7], D7
  3831. 00002A58  3E2E 0008                move.w     D7, [A6 + 0x8]
  3832. 00002A5C  0807 000B                btst.b     D7, 0xB
  3833. 00002A60  676C                     beq        +0x6E /* 00002ACE */
  3834. 00002A62  42A7                     clr.l      -[A7]
  3835. 00002A64  2F3C 0100 A86E           move.l     -[A7], 0x100A86E
  3836. 00002A6A  4EBA 103C                jsr        [PC + 0x103C /* 00003AA8 */]
  3837. 00002A6E  2D5F FFFC                move.l     [A6 - 0x4], [A7]+
  3838. 00002A72  42A7                     clr.l      -[A7]
  3839. 00002A74  2F3C 0100 AA6E           move.l     -[A7], 0x100AA6E
  3840. 00002A7A  4EBA 102C                jsr        [PC + 0x102C /* 00003AA8 */]
  3841. 00002A7E  202E FFFC                move.l     D0, [A6 - 0x4]
  3842. 00002A82  B09F                     cmp.l      D0, [A7]+
  3843. 00002A84  6610                     bne        +0x12 /* 00002A96 */
  3844. 00002A86  3007                     move.w     D0, D7
  3845. 00002A88  0240 07FF                andi.w     D0, 0x7FF
  3846. 00002A8C  0C40 0200                cmpi.w     D0, 0x200
  3847. 00002A90  6514                     bcs        +0x16 /* 00002AA6 */
  3848. 00002A92  7000                     moveq.l    D0, 0x00
  3849. 00002A94  6060                     bra        +0x62 /* 00002AF6 */
  3850. label00002A96:
  3851. 00002A96  3007                     move.w     D0, D7
  3852. 00002A98  0240 07FF                andi.w     D0, 0x7FF
  3853. 00002A9C  0C40 0400                cmpi.w     D0, 0x400
  3854. 00002AA0  6504                     bcs        +0x6 /* 00002AA6 */
  3855. 00002AA2  7000                     moveq.l    D0, 0x00
  3856. 00002AA4  6050                     bra        +0x52 /* 00002AF6 */
  3857. label00002AA6:
  3858. 00002AA6  42A7                     clr.l      -[A7]
  3859. 00002AA8  3F07                     move.w     -[A7], D7
  3860. 00002AAA  1F3C 0001                move.b     -[A7], 0x1
  3861. 00002AAE  4EBA 0FF8                jsr        [PC + 0xFF8 /* 00003AA8 */]
  3862. 00002AB2  2D5F FFFC                move.l     [A6 - 0x4], [A7]+
  3863. 00002AB6  42A7                     clr.l      -[A7]
  3864. 00002AB8  2F3C 0100 A89F           move.l     -[A7], 0x100A89F
  3865. 00002ABE  4EBA 0FE8                jsr        [PC + 0xFE8 /* 00003AA8 */]
  3866. 00002AC2  202E FFFC                move.l     D0, [A6 - 0x4]
  3867. 00002AC6  B09F                     cmp.l      D0, [A7]+
  3868. 00002AC8  662A                     bne        +0x2C /* 00002AF4 */
  3869. 00002ACA  7000                     moveq.l    D0, 0x00
  3870. 00002ACC  6028                     bra        +0x2A /* 00002AF6 */
  3871. label00002ACE:
  3872. 00002ACE  42A7                     clr.l      -[A7]
  3873. 00002AD0  3F07                     move.w     -[A7], D7
  3874. 00002AD2  4227                     clr.b      -[A7]
  3875. 00002AD4  4EBA 0FD2                jsr        [PC + 0xFD2 /* 00003AA8 */]
  3876. 00002AD8  2D5F FFFC                move.l     [A6 - 0x4], [A7]+
  3877. 00002ADC  42A7                     clr.l      -[A7]
  3878. 00002ADE  2F3C 0000 A89F           move.l     -[A7], 0xA89F
  3879. 00002AE4  4EBA 0FC2                jsr        [PC + 0xFC2 /* 00003AA8 */]
  3880. 00002AE8  202E FFFC                move.l     D0, [A6 - 0x4]
  3881. 00002AEC  B09F                     cmp.l      D0, [A7]+
  3882. 00002AEE  6604                     bne        +0x6 /* 00002AF4 */
  3883. 00002AF0  7000                     moveq.l    D0, 0x00
  3884. 00002AF2  6002                     bra        +0x4 /* 00002AF6 */
  3885. label00002AF4:
  3886. 00002AF4  7001                     moveq.l    D0, 0x01
  3887. label00002AF6:
  3888. 00002AF6  2E1F                     move.l     D7, [A7]+
  3889. 00002AF8  4E5E                     unlink     A6
  3890. 00002AFA  4E75                     rts
  3891. fn00002AFC:
  3892. 00002AFC  4A2D CE64                tst.b      [A5 - 0x319C]
  3893. 00002B00  6606                     bne        +0x8 /* 00002B08 */
  3894. 00002B02  4EBA 000A                jsr        [PC + 0xA /* 00002B0E */]
  3895. 00002B06  6004                     bra        +0x6 /* 00002B0C */
  3896. label00002B08:
  3897. 00002B08  4EBA 007E                jsr        [PC + 0x7E /* 00002B88 */]
  3898. label00002B0C:
  3899. 00002B0C  4E75                     rts
  3900. fn00002B0E:
  3901. 00002B0E  4E56 FFFC                link       A6, -0x0004
  3902. 00002B12  2F0C                     move.l     -[A7], A4
  3903. 00002B14  4A2D CE64                tst.b      [A5 - 0x319C]
  3904. 00002B18  6668                     bne        +0x6A /* 00002B82 */
  3905. 00002B1A  4A2D CE65                tst.b      [A5 - 0x319B]
  3906. 00002B1E  6762                     beq        +0x64 /* 00002B82 */
  3907. 00002B20  4278 0BAA                clr.w      [0x00000BAA /* MBarHeight */]
  3908. 00002B24  21ED D5A0 09EE           move.l     [0x000009EE /* GrayRgn */], [A5 - 0x2A60]
  3909. 00002B2A  486D D5AA                pea.l      [A5 - 0x2A56]
  3910. 00002B2E  A874                     syscall    GetPort
  3911. 00002B30  486E FFFC                pea.l      [A6 - 0x4]
  3912. 00002B34  A910                     syscall    GetWMgrPort
  3913. 00002B36  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  3914. 00002B3A  A873                     syscall    SetPort
  3915. 00002B3C  2F38 09EE                move.l     -[A7], [0x000009EE /* GrayRgn */]
  3916. 00002B40  A879                     syscall    SetClip
  3917. 00002B42  42A7                     clr.l      -[A7]
  3918. 00002B44  2F2D D5A0                move.l     -[A7], [A5 - 0x2A60]
  3919. 00002B48  A90C                     syscall    PaintOne
  3920. 00002B4A  2F2D D59C                move.l     -[A7], [A5 - 0x2A64]
  3921. 00002B4E  486D FDD8                pea.l      [A5 - 0x228]
  3922. 00002B52  A8D6                     syscall    FillRgn
  3923. 00002B54  42A7                     clr.l      -[A7]
  3924. 00002B56  A924                     syscall    FrontWindow
  3925. 00002B58  285F                     movea.l    A4, [A7]+
  3926. 00002B5A  2F0C                     move.l     -[A7], A4
  3927. 00002B5C  2F2D D59C                move.l     -[A7], [A5 - 0x2A64]
  3928. 00002B60  A90C                     syscall    PaintOne
  3929. 00002B62  2F0C                     move.l     -[A7], A4
  3930. 00002B64  2F2D D59C                move.l     -[A7], [A5 - 0x2A64]
  3931. 00002B68  A90D                     syscall    PaintBehind
  3932. 00002B6A  2F0C                     move.l     -[A7], A4
  3933. 00002B6C  A909                     syscall    CalcVis
  3934. 00002B6E  2F0C                     move.l     -[A7], A4
  3935. 00002B70  2F2D D59C                move.l     -[A7], [A5 - 0x2A64]
  3936. 00002B74  A90A                     syscall    CalcVBehind
  3937. 00002B76  2F2D D5AA                move.l     -[A7], [A5 - 0x2A56]
  3938. 00002B7A  A873                     syscall    SetPort
  3939. 00002B7C  1B7C 0001 CE64           move.b     [A5 - 0x319C], 0x1
  3940. label00002B82:
  3941. 00002B82  285F                     movea.l    A4, [A7]+
  3942. 00002B84  4E5E                     unlink     A6
  3943. 00002B86  4E75                     rts
  3944. fn00002B88:
  3945. 00002B88  4E56 FFFC                link       A6, -0x0004
  3946. 00002B8C  2F0C                     move.l     -[A7], A4
  3947. 00002B8E  4A2D CE64                tst.b      [A5 - 0x319C]
  3948. 00002B92  6752                     beq        +0x54 /* 00002BE6 */
  3949. 00002B94  4A2D CE65                tst.b      [A5 - 0x319B]
  3950. 00002B98  674C                     beq        +0x4E /* 00002BE6 */
  3951. 00002B9A  31ED D5A4 0BAA           move.w     [0x00000BAA /* MBarHeight */], [A5 - 0x2A5C]
  3952. 00002BA0  21ED D598 09EE           move.l     [0x000009EE /* GrayRgn */], [A5 - 0x2A68]
  3953. 00002BA6  486D D5AA                pea.l      [A5 - 0x2A56]
  3954. 00002BAA  A874                     syscall    GetPort
  3955. 00002BAC  486E FFFC                pea.l      [A6 - 0x4]
  3956. 00002BB0  A910                     syscall    GetWMgrPort
  3957. 00002BB2  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  3958. 00002BB6  A873                     syscall    SetPort
  3959. 00002BB8  2F2D D59C                move.l     -[A7], [A5 - 0x2A64]
  3960. 00002BBC  486D FDD8                pea.l      [A5 - 0x228]
  3961. 00002BC0  A8D6                     syscall    FillRgn
  3962. 00002BC2  42A7                     clr.l      -[A7]
  3963. 00002BC4  A924                     syscall    FrontWindow
  3964. 00002BC6  285F                     movea.l    A4, [A7]+
  3965. 00002BC8  2F0C                     move.l     -[A7], A4
  3966. 00002BCA  A909                     syscall    CalcVis
  3967. 00002BCC  2F0C                     move.l     -[A7], A4
  3968. 00002BCE  2F2D D59C                move.l     -[A7], [A5 - 0x2A64]
  3969. 00002BD2  A90A                     syscall    CalcVBehind
  3970. 00002BD4  A937                     syscall    DrawMenuBar
  3971. 00002BD6  2F38 09EE                move.l     -[A7], [0x000009EE /* GrayRgn */]
  3972. 00002BDA  A879                     syscall    SetClip
  3973. 00002BDC  2F2D D5AA                move.l     -[A7], [A5 - 0x2A56]
  3974. 00002BE0  A873                     syscall    SetPort
  3975. 00002BE2  422D CE64                clr.b      [A5 - 0x319C]
  3976. label00002BE6:
  3977. 00002BE6  285F                     movea.l    A4, [A7]+
  3978. 00002BE8  4E5E                     unlink     A6
  3979. 00002BEA  4E75                     rts
  3980. fn00002BEC:
  3981. 00002BEC  422D CE63                clr.b      [A5 - 0x319D]
  3982. 00002BF0  422D D660                clr.b      [A5 - 0x29A0]
  3983. 00002BF4  426D D666                clr.w      [A5 - 0x299A]
  3984. 00002BF8  4E75                     rts
  3985. fn00002BFA:
  3986. 00002BFA  A850                     syscall    InitCursor
  3987. 00002BFC  422D CE63                clr.b      [A5 - 0x319D]
  3988. 00002C00  422D D660                clr.b      [A5 - 0x29A0]
  3989. 00002C04  426D D666                clr.w      [A5 - 0x299A]
  3990. 00002C08  4E75                     rts
  3991. export_15:
  3992. fn00002C0A:
  3993. 00002C0A  4E56 0000                link       A6, 0
  3994. 00002C0E  48E7 0018                movem.l    -[A7], A3,A4
  3995. 00002C12  97CB                     sub.l      A3, A3
  3996. 00002C14  42A7                     clr.l      -[A7]
  3997. 00002C16  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  3998. 00002C1A  3F2E 000C                move.w     -[A7], [A6 + 0xC]
  3999. 00002C1E  A9A0                     syscall    GetResource
  4000. 00002C20  285F                     movea.l    A4, [A7]+
  4001. 00002C22  200C                     move.l     D0, A4
  4002. 00002C24  6724                     beq        +0x26 /* 00002C4A */
  4003. 00002C26  4A94                     tst.l      [A4]
  4004. 00002C28  660C                     bne        +0xE /* 00002C36 */
  4005. 00002C2A  2F0C                     move.l     -[A7], A4
  4006. 00002C2C  A9A2                     syscall    LoadResource
  4007. 00002C2E  4267                     clr.w      -[A7]
  4008. 00002C30  A9AF                     syscall    ResError
  4009. 00002C32  4A5F                     tst.w      [A7]+
  4010. 00002C34  6614                     bne        +0x16 /* 00002C4A */
  4011. label00002C36:
  4012. 00002C36  4A2E 000E                tst.b      [A6 + 0xE]
  4013. 00002C3A  6704                     beq        +0x6 /* 00002C40 */
  4014. 00002C3C  204C                     movea.l    A0, A4
  4015. 00002C3E  A064                     syscall    MoveHHi
  4016. label00002C40:
  4017. 00002C40  204C                     movea.l    A0, A4
  4018. 00002C42  A04A                     syscall    HNoPurge
  4019. 00002C44  204C                     movea.l    A0, A4
  4020. 00002C46  A029                     syscall    HLock
  4021. 00002C48  2654                     movea.l    A3, [A4]
  4022. label00002C4A:
  4023. 00002C4A  200B                     move.l     D0, A3
  4024. 00002C4C  4CDF 1800                movem.l    A3,A4, [A7]+
  4025. 00002C50  4E5E                     unlink     A6
  4026. 00002C52  4E75                     rts
  4027. export_16:
  4028. fn00002C54:
  4029. 00002C54  4E56 0000                link       A6, 0
  4030. 00002C58  2F0C                     move.l     -[A7], A4
  4031. 00002C5A  4AAE 0008                tst.l      [A6 + 0x8]
  4032. 00002C5E  6714                     beq        +0x16 /* 00002C74 */
  4033. 00002C60  206E 0008                movea.l    A0, [A6 + 0x8]
  4034. 00002C64  A128                     syscall    RecoverHandle, flags=1
  4035. 00002C66  2848                     movea.l    A4, A0
  4036. 00002C68  200C                     move.l     D0, A4
  4037. 00002C6A  6708                     beq        +0xA /* 00002C74 */
  4038. 00002C6C  204C                     movea.l    A0, A4
  4039. 00002C6E  A02A                     syscall    HUnlock
  4040. 00002C70  204C                     movea.l    A0, A4
  4041. 00002C72  A049                     syscall    HPurge
  4042. label00002C74:
  4043. 00002C74  285F                     movea.l    A4, [A7]+
  4044. 00002C76  4E5E                     unlink     A6
  4045. 00002C78  4E75                     rts
  4046. export_17:
  4047. fn00002C7A:
  4048. 00002C7A  4E56 0000                link       A6, 0
  4049. 00002C7E  2F07                     move.l     -[A7], D7
  4050. 00002C80  4EBA 0976                jsr        [PC + 0x976 /* 000035F8 */]
  4051. 00002C84  4EBA FF74                jsr        [PC - 0x8C /* 00002BFA */]
  4052. 00002C88  42A7                     clr.l      -[A7]
  4053. 00002C8A  A98C                     syscall    ErrorSound
  4054. 00002C8C  4267                     clr.w      -[A7]
  4055. 00002C8E  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  4056. 00002C92  42A7                     clr.l      -[A7]
  4057. 00002C94  A985                     syscall    Alert
  4058. 00002C96  3E1F                     move.w     D7, [A7]+
  4059. 00002C98  422D CE62                clr.b      [A5 - 0x319E]
  4060. 00002C9C  4EBA FF4E                jsr        [PC - 0xB2 /* 00002BEC */]
  4061. 00002CA0  4EBA 0984                jsr        [PC + 0x984 /* 00003626 */]
  4062. 00002CA4  3007                     move.w     D0, D7
  4063. 00002CA6  2E1F                     move.l     D7, [A7]+
  4064. 00002CA8  4E5E                     unlink     A6
  4065. 00002CAA  4E75                     rts
  4066. fn00002CAC:
  4067. 00002CAC  4E56 0000                link       A6, 0
  4068. 00002CB0  2F07                     move.l     -[A7], D7
  4069. 00002CB2  4EBA 0944                jsr        [PC + 0x944 /* 000035F8 */]
  4070. 00002CB6  4EBA FF42                jsr        [PC - 0xBE /* 00002BFA */]
  4071. 00002CBA  486D D5AA                pea.l      [A5 - 0x2A56]
  4072. 00002CBE  A874                     syscall    GetPort
  4073. 00002CC0  42A7                     clr.l      -[A7]
  4074. 00002CC2  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  4075. 00002CC6  42A7                     clr.l      -[A7]
  4076. 00002CC8  4878 FFFF                push.l     0xFFFF
  4077. 00002CCC  A97C                     syscall    GetNewDialog
  4078. 00002CCE  2B5F DF6C                move.l     [A5 - 0x2094], [A7]+
  4079. 00002CD2  4AAD DF6C                tst.l      [A5 - 0x2094]
  4080. 00002CD6  6776                     beq        +0x78 /* 00002D4E */
  4081. 00002CD8  2F2D DF6C                move.l     -[A7], [A5 - 0x2094]
  4082. 00002CDC  A873                     syscall    SetPort
  4083. 00002CDE  4AAD DF5C                tst.l      [A5 - 0x20A4]
  4084. 00002CE2  6706                     beq        +0x8 /* 00002CEA */
  4085. 00002CE4  206D DF5C                movea.l    A0, [A5 - 0x20A4]
  4086. 00002CE8  4E90                     jsr        [A0]
  4087. label00002CEA:
  4088. 00002CEA  7E00                     moveq.l    D7, 0x00
  4089. 00002CEC  6042                     bra        +0x44 /* 00002D30 */
  4090. label00002CEE:
  4091. 00002CEE  486D 00B2                pea.l      [A5 + 0xB2 /* export_18 */]
  4092. 00002CF2  486D DF70                pea.l      [A5 - 0x2090]
  4093. 00002CF6  A991                     syscall    ModalDialog
  4094. 00002CF8  2F2D DF6C                move.l     -[A7], [A5 - 0x2094]
  4095. 00002CFC  3F2D DF70                move.w     -[A7], [A5 - 0x2090]
  4096. 00002D00  486D DF72                pea.l      [A5 - 0x208E]
  4097. 00002D04  486D DF74                pea.l      [A5 - 0x208C]
  4098. 00002D08  486D DF78                pea.l      [A5 - 0x2088]
  4099. 00002D0C  A98D                     syscall    GetDialogItem/GetDItem
  4100. 00002D0E  4AAD DF64                tst.l      [A5 - 0x209C]
  4101. 00002D12  670A                     beq        +0xC /* 00002D1E */
  4102. 00002D14  206D DF64                movea.l    A0, [A5 - 0x209C]
  4103. 00002D18  4E90                     jsr        [A0]
  4104. 00002D1A  1E00                     move.b     D7, D0
  4105. 00002D1C  6012                     bra        +0x14 /* 00002D30 */
  4106. label00002D1E:
  4107. 00002D1E  0C6D 0001 DF70           cmpi.w     [A5 - 0x2090], 0x1
  4108. 00002D24  6708                     beq        +0xA /* 00002D2E */
  4109. 00002D26  0C6D 0002 DF70           cmpi.w     [A5 - 0x2090], 0x2
  4110. 00002D2C  6602                     bne        +0x4 /* 00002D30 */
  4111. label00002D2E:
  4112. 00002D2E  7E01                     moveq.l    D7, 0x01
  4113. label00002D30:
  4114. 00002D30  4A07                     tst.b      D7
  4115. 00002D32  67BA                     beq        -0x44 /* 00002CEE */
  4116. 00002D34  4AAD DF68                tst.l      [A5 - 0x2098]
  4117. 00002D38  6706                     beq        +0x8 /* 00002D40 */
  4118. 00002D3A  206D DF68                movea.l    A0, [A5 - 0x2098]
  4119. 00002D3E  4E90                     jsr        [A0]
  4120. label00002D40:
  4121. 00002D40  2F2D DF6C                move.l     -[A7], [A5 - 0x2094]
  4122. 00002D44  A983                     syscall    DisposeDialog
  4123. 00002D46  42AD DF6C                clr.l      [A5 - 0x2094]
  4124. 00002D4A  422D CE62                clr.b      [A5 - 0x319E]
  4125. label00002D4E:
  4126. 00002D4E  42AD DF5C                clr.l      [A5 - 0x20A4]
  4127. 00002D52  42AD DF60                clr.l      [A5 - 0x20A0]
  4128. 00002D56  42AD DF64                clr.l      [A5 - 0x209C]
  4129. 00002D5A  42AD DF68                clr.l      [A5 - 0x2098]
  4130. 00002D5E  A01C                     syscall    FreeMem
  4131. 00002D60  A04D                     syscall    PurgeMem
  4132. 00002D62  2F2D D5AA                move.l     -[A7], [A5 - 0x2A56]
  4133. 00002D66  A873                     syscall    SetPort
  4134. 00002D68  4EBA FE82                jsr        [PC - 0x17E /* 00002BEC */]
  4135. 00002D6C  4EBA 08B8                jsr        [PC + 0x8B8 /* 00003626 */]
  4136. 00002D70  2E1F                     move.l     D7, [A7]+
  4137. 00002D72  4E5E                     unlink     A6
  4138. 00002D74  4E75                     rts
  4139. export_18:
  4140. 00002D76  4E56 0000                link       A6, 0
  4141. 00002D7A  4AAD DF60                tst.l      [A5 - 0x20A0]
  4142. 00002D7E  671C                     beq        +0x1E /* 00002D9C */
  4143. 00002D80  206E 000C                movea.l    A0, [A6 + 0xC]
  4144. 00002D84  43ED D650                lea.l      A1, [A5 - 0x29B0]
  4145. 00002D88  22D8                     move.l     [A1]+, [A0]+
  4146. 00002D8A  22D8                     move.l     [A1]+, [A0]+
  4147. 00002D8C  22D8                     move.l     [A1]+, [A0]+
  4148. 00002D8E  22D8                     move.l     [A1]+, [A0]+
  4149. 00002D90  206D DF60                movea.l    A0, [A5 - 0x20A0]
  4150. 00002D94  4E90                     jsr        [A0]
  4151. 00002D96  1D40 0014                move.b     [A6 + 0x14], D0
  4152. 00002D9A  6004                     bra        +0x6 /* 00002DA0 */
  4153. label00002D9C:
  4154. 00002D9C  422E 0014                clr.b      [A6 + 0x14]
  4155. label00002DA0:
  4156. 00002DA0  4E5E                     unlink     A6
  4157. 00002DA2  205F                     movea.l    A0, [A7]+
  4158. 00002DA4  4FEF 000C                lea.l      A7, [A7 + 0xC]
  4159. 00002DA8  4ED0                     jmp        [A0]
  4160. export_19:
  4161. fn00002DAA:
  4162. 00002DAA  3B7C 0001 DF70           move.w     [A5 - 0x2090], 0x1
  4163. 00002DB0  2F2D DF6C                move.l     -[A7], [A5 - 0x2094]
  4164. 00002DB4  3F2D DF70                move.w     -[A7], [A5 - 0x2090]
  4165. 00002DB8  486D DF72                pea.l      [A5 - 0x208E]
  4166. 00002DBC  486D DF74                pea.l      [A5 - 0x208C]
  4167. 00002DC0  486D DF78                pea.l      [A5 - 0x2088]
  4168. 00002DC4  A98D                     syscall    GetDialogItem/GetDItem
  4169. 00002DC6  2F3C 0003 0003           move.l     -[A7], 0x30003
  4170. 00002DCC  A89B                     syscall    PenSize
  4171. 00002DCE  486D DF78                pea.l      [A5 - 0x2088]
  4172. 00002DD2  2F3C FFFC FFFC           move.l     -[A7], 0xFFFCFFFC
  4173. 00002DD8  A8A9                     syscall    InsetRect
  4174. 00002DDA  486D DF78                pea.l      [A5 - 0x2088]
  4175. 00002DDE  2F3C 0010 0010           move.l     -[A7], 0x100010
  4176. 00002DE4  A8B0                     syscall    FrameRoundRect
  4177. 00002DE6  4E75                     rts
  4178. export_20:
  4179. 00002DE8  302D D650                move.w     D0, [A5 - 0x29B0]
  4180. 00002DEC  6B3A                     bmi        +0x3C /* 00002E28 */
  4181. 00002DEE  5740                     subq.w     D0, 3
  4182. 00002DF0  6702                     beq        +0x4 /* 00002DF4 */
  4183. 00002DF2  6034                     bra        +0x36 /* 00002E28 */
  4184. label00002DF4:
  4185. 00002DF4  70FF                     moveq.l    D0, 0xFFFFFFFF
  4186. 00002DF6  C02D D655                and.b      D0, [A5 - 0x29AB]
  4187. 00002DFA  6B2C                     bmi        +0x2E /* 00002E28 */
  4188. 00002DFC  0400 000D                subi.b     D0, 0xD /* '\r' */
  4189. 00002E00  6712                     beq        +0x14 /* 00002E14 */
  4190. 00002E02  6A08                     bpl        +0xA /* 00002E0C */
  4191. 00002E04  0400 00F6                subi.b     D0, 0xF6
  4192. 00002E08  670A                     beq        +0xC /* 00002E14 */
  4193. 00002E0A  601C                     bra        +0x1E /* 00002E28 */
  4194. label00002E0C:
  4195. 00002E0C  0400 000E                subi.b     D0, 0xE
  4196. 00002E10  670C                     beq        +0xE /* 00002E1E */
  4197. 00002E12  6014                     bra        +0x16 /* 00002E28 */
  4198. label00002E14:
  4199. 00002E14  3B7C 0001 DF70           move.w     [A5 - 0x2090], 0x1
  4200. 00002E1A  7001                     moveq.l    D0, 0x01
  4201. 00002E1C  600C                     bra        +0xE /* 00002E2A */
  4202. label00002E1E:
  4203. 00002E1E  3B7C 0002 DF70           move.w     [A5 - 0x2090], 0x2
  4204. 00002E24  7001                     moveq.l    D0, 0x01
  4205. 00002E26  6002                     bra        +0x4 /* 00002E2A */
  4206. label00002E28:
  4207. 00002E28  7000                     moveq.l    D0, 0x00
  4208. label00002E2A:
  4209. 00002E2A  4E75                     rts
  4210. fn00002E2C:
  4211. 00002E2C  4A2D D69F                tst.b      [A5 - 0x2961]
  4212. 00002E30  6742                     beq        +0x44 /* 00002E74 */
  4213. 00002E32  0C6D 0006 D590           cmpi.w     [A5 - 0x2A70], 0x6
  4214. 00002E38  660E                     bne        +0x10 /* 00002E48 */
  4215. 00002E3A  2F3C 000C 0000           move.l     -[A7], 0xC0000
  4216. 00002E40  4EBA 0436                jsr        [PC + 0x436 /* 00003278 */]
  4217. 00002E44  588F                     addq.l     A7, 4
  4218. 00002E46  600C                     bra        +0xE /* 00002E54 */
  4219. label00002E48:
  4220. 00002E48  2F3C 000A 0000           move.l     -[A7], 0xA0000 /* '\n\0\0' */
  4221. 00002E4E  4EBA 0428                jsr        [PC + 0x428 /* 00003278 */]
  4222. 00002E52  588F                     addq.l     A7, 4
  4223. label00002E54:
  4224. 00002E54  206D FF80                movea.l    A0, [A5 - 0x80]
  4225. 00002E58  2068 0002                movea.l    A0, [A0 + 0x2]
  4226. 00002E5C  2050                     movea.l    A0, [A0]
  4227. 00002E5E  216D D696 002A           move.l     [A0 + 0x2A], [A5 - 0x296A]
  4228. 00002E64  206D FFB4                movea.l    A0, [A5 - 0x4C]
  4229. 00002E68  2068 0002                movea.l    A0, [A0 + 0x2]
  4230. 00002E6C  2050                     movea.l    A0, [A0]
  4231. 00002E6E  216D D696 002A           move.l     [A0 + 0x2A], [A5 - 0x296A]
  4232. label00002E74:
  4233. 00002E74  4E75                     rts
  4234. fn00002E76:
  4235. 00002E76  4A2D D69F                tst.b      [A5 - 0x2961]
  4236. 00002E7A  672C                     beq        +0x2E /* 00002EA8 */
  4237. 00002E7C  2F3C 0002 0000           move.l     -[A7], 0x20000
  4238. 00002E82  4EBA 03F4                jsr        [PC + 0x3F4 /* 00003278 */]
  4239. 00002E86  206D FF80                movea.l    A0, [A5 - 0x80]
  4240. 00002E8A  2068 0002                movea.l    A0, [A0 + 0x2]
  4241. 00002E8E  2050                     movea.l    A0, [A0]
  4242. 00002E90  216D FF62 002A           move.l     [A0 + 0x2A], [A5 - 0x9E]
  4243. 00002E96  206D FFB4                movea.l    A0, [A5 - 0x4C]
  4244. 00002E9A  2068 0002                movea.l    A0, [A0 + 0x2]
  4245. 00002E9E  2050                     movea.l    A0, [A0]
  4246. 00002EA0  216D FF62 002A           move.l     [A0 + 0x2A], [A5 - 0x9E]
  4247. 00002EA6  588F                     addq.l     A7, 4
  4248. label00002EA8:
  4249. 00002EA8  4E75                     rts
  4250. export_21:
  4251. fn00002EAA:
  4252. 00002EAA  4E56 FFEC                link       A6, -0x0014
  4253. 00002EAE  48E7 1F08                movem.l    -[A7], D3,D4,D5,D6,D7,A4
  4254. 00002EB2  4227                     clr.b      -[A7]
  4255. 00002EB4  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  4256. 00002EB8  486D D6D2                pea.l      [A5 - 0x292E]
  4257. 00002EBC  486E FFF8                pea.l      [A6 - 0x8]
  4258. 00002EC0  A8AA                     syscall    SectRect
  4259. 00002EC2  4A1F                     tst.b      [A7]+
  4260. 00002EC4  6700 015C                beq        +0x15E /* 00003022 */
  4261. 00002EC8  302D D67E                move.w     D0, [A5 - 0x2982]
  4262. 00002ECC  C16E FFFA                and.w      [A6 - 0x6], D0
  4263. 00002ED0  322D D680                move.w     D1, [A5 - 0x2980]
  4264. 00002ED4  D36E FFFE                add.w      [A6 - 0x2], D1
  4265. 00002ED8  C16E FFFE                and.w      [A6 - 0x2], D0
  4266. 00002EDC  362E FFF8                move.w     D3, [A6 - 0x8]
  4267. 00002EE0  3D6E FFFA FFF6           move.w     [A6 - 0xA], [A6 - 0x6]
  4268. 00002EE6  3D6E FFFC FFF4           move.w     [A6 - 0xC], [A6 - 0x4]
  4269. 00002EEC  382E FFFE                move.w     D4, [A6 - 0x2]
  4270. 00002EF0  3E2E FFF6                move.w     D7, [A6 - 0xA]
  4271. 00002EF4  DE44                     add.w      D7, D4
  4272. 00002EF6  E247                     asr        D7.w, 1
  4273. 00002EF8  3C2E FFF4                move.w     D6, [A6 - 0xC]
  4274. 00002EFC  DC43                     add.w      D6, D3
  4275. 00002EFE  E246                     asr        D6.w, 1
  4276. 00002F00  49ED D916                lea.l      A4, [A5 - 0x26EA]
  4277. 00002F04  7A00                     moveq.l    D5, 0x00
  4278. 00002F06  6000 00D4                bra        +0xD6 /* 00002FDC */
  4279. label00002F0A:
  4280. 00002F0A  3D54 FFF2                move.w     [A6 - 0xE], [A4]
  4281. 00002F0E  3D6C 0002 FFF0           move.w     [A6 - 0x10], [A4 + 0x2]
  4282. 00002F14  3D6C 0004 FFEE           move.w     [A6 - 0x12], [A4 + 0x4]
  4283. 00002F1A  3D6C 0006 FFEC           move.w     [A6 - 0x14], [A4 + 0x6]
  4284. 00002F20  BC6E FFF2                cmp.w      D6, [A6 - 0xE]
  4285. 00002F24  6D12                     blt        +0x14 /* 00002F38 */
  4286. 00002F26  BE6E FFF0                cmp.w      D7, [A6 - 0x10]
  4287. 00002F2A  6D0C                     blt        +0xE /* 00002F38 */
  4288. 00002F2C  BC6E FFEE                cmp.w      D6, [A6 - 0x12]
  4289. 00002F30  6E06                     bgt        +0x8 /* 00002F38 */
  4290. 00002F32  BE6E FFEC                cmp.w      D7, [A6 - 0x14]
  4291. 00002F36  6F40                     ble        +0x42 /* 00002F78 */
  4292. label00002F38:
  4293. 00002F38  302E FFF6                move.w     D0, [A6 - 0xA]
  4294. 00002F3C  B06E FFF0                cmp.w      D0, [A6 - 0x10]
  4295. 00002F40  6616                     bne        +0x18 /* 00002F58 */
  4296. 00002F42  B86E FFEC                cmp.w      D4, [A6 - 0x14]
  4297. 00002F46  6610                     bne        +0x12 /* 00002F58 */
  4298. 00002F48  B66E FFEE                cmp.w      D3, [A6 - 0x12]
  4299. 00002F4C  6E0A                     bgt        +0xC /* 00002F58 */
  4300. 00002F4E  302E FFF4                move.w     D0, [A6 - 0xC]
  4301. 00002F52  B06E FFF2                cmp.w      D0, [A6 - 0xE]
  4302. 00002F56  6C20                     bge        +0x22 /* 00002F78 */
  4303. label00002F58:
  4304. 00002F58  B66E FFF2                cmp.w      D3, [A6 - 0xE]
  4305. 00002F5C  667A                     bne        +0x7C /* 00002FD8 */
  4306. 00002F5E  302E FFF4                move.w     D0, [A6 - 0xC]
  4307. 00002F62  B06E FFEE                cmp.w      D0, [A6 - 0x12]
  4308. 00002F66  6670                     bne        +0x72 /* 00002FD8 */
  4309. 00002F68  302E FFF6                move.w     D0, [A6 - 0xA]
  4310. 00002F6C  B06E FFEC                cmp.w      D0, [A6 - 0x14]
  4311. 00002F70  6E66                     bgt        +0x68 /* 00002FD8 */
  4312. 00002F72  B86E FFF0                cmp.w      D4, [A6 - 0x10]
  4313. 00002F76  6D60                     blt        +0x62 /* 00002FD8 */
  4314. label00002F78:
  4315. 00002F78  B66E FFF2                cmp.w      D3, [A6 - 0xE]
  4316. 00002F7C  6F04                     ble        +0x6 /* 00002F82 */
  4317. 00002F7E  362E FFF2                move.w     D3, [A6 - 0xE]
  4318. label00002F82:
  4319. 00002F82  302E FFF6                move.w     D0, [A6 - 0xA]
  4320. 00002F86  B06E FFF0                cmp.w      D0, [A6 - 0x10]
  4321. 00002F8A  6F06                     ble        +0x8 /* 00002F92 */
  4322. 00002F8C  3D6E FFF0 FFF6           move.w     [A6 - 0xA], [A6 - 0x10]
  4323. label00002F92:
  4324. 00002F92  302E FFF4                move.w     D0, [A6 - 0xC]
  4325. 00002F96  B06E FFEE                cmp.w      D0, [A6 - 0x12]
  4326. 00002F9A  6C06                     bge        +0x8 /* 00002FA2 */
  4327. 00002F9C  3D6E FFEE FFF4           move.w     [A6 - 0xC], [A6 - 0x12]
  4328. label00002FA2:
  4329. 00002FA2  B86E FFEC                cmp.w      D4, [A6 - 0x14]
  4330. 00002FA6  6C04                     bge        +0x6 /* 00002FAC */
  4331. 00002FA8  382E FFEC                move.w     D4, [A6 - 0x14]
  4332. label00002FAC:
  4333. 00002FAC  3E2E FFF6                move.w     D7, [A6 - 0xA]
  4334. 00002FB0  DE44                     add.w      D7, D4
  4335. 00002FB2  E247                     asr        D7.w, 1
  4336. 00002FB4  3C2E FFF4                move.w     D6, [A6 - 0xC]
  4337. 00002FB8  DC43                     add.w      D6, D3
  4338. 00002FBA  E246                     asr        D6.w, 1
  4339. 00002FBC  536D D914                subq.w     [A5 - 0x26EC], 1
  4340. 00002FC0  302D D914                move.w     D0, [A5 - 0x26EC]
  4341. 00002FC4  204D                     movea.l    A0, A5
  4342. 00002FC6  48C0                     ext.l      D0
  4343. 00002FC8  E788                     lsl        D0, 3
  4344. 00002FCA  D1C0                     add.l      A0, D0
  4345. 00002FCC  28A8 D916                move.l     [A4], [A0 - 0x26EA]
  4346. 00002FD0  2968 D91A 0004           move.l     [A4 + 0x4], [A0 - 0x26E6]
  4347. 00002FD6  6004                     bra        +0x6 /* 00002FDC */
  4348. label00002FD8:
  4349. 00002FD8  508C                     addq.l     A4, 8
  4350. 00002FDA  5245                     addq.w     D5, 1
  4351. label00002FDC:
  4352. 00002FDC  BA6D D914                cmp.w      D5, [A5 - 0x26EC]
  4353. 00002FE0  6D00 FF28                blt        -0xD6 /* 00002F0A */
  4354. 00002FE4  0C6D 0060 D914           cmpi.w     [A5 - 0x26EC], 0x60 /* '`' */
  4355. 00002FEA  6C18                     bge        +0x1A /* 00003004 */
  4356. 00002FEC  3883                     move.w     [A4], D3
  4357. 00002FEE  396E FFF6 0002           move.w     [A4 + 0x2], [A6 - 0xA]
  4358. 00002FF4  396E FFF4 0004           move.w     [A4 + 0x4], [A6 - 0xC]
  4359. 00002FFA  3944 0006                move.w     [A4 + 0x6], D4
  4360. 00002FFE  526D D914                addq.w     [A5 - 0x26EC], 1
  4361. 00003002  6006                     bra        +0x8 /* 0000300A */
  4362. label00003004:
  4363. 00003004  1B7C 0001 D912           move.b     [A5 - 0x26EE], 0x1
  4364. label0000300A:
  4365. 0000300A  4A2D D912                tst.b      [A5 - 0x26EE]
  4366. 0000300E  6712                     beq        +0x14 /* 00003022 */
  4367. 00003010  2B6D D6B0 D916           move.l     [A5 - 0x26EA], [A5 - 0x2950]
  4368. 00003016  2B6D D6B4 D91A           move.l     [A5 - 0x26E6], [A5 - 0x294C]
  4369. 0000301C  3B7C 0001 D914           move.w     [A5 - 0x26EC], 0x1
  4370. label00003022:
  4371. 00003022  4CDF 10F8                movem.l    D3,D4,D5,D6,D7,A4, [A7]+
  4372. 00003026  4E5E                     unlink     A6
  4373. 00003028  4E75                     rts
  4374. export_22:
  4375. 0000302A  48E7 0318                movem.l    -[A7], D6,D7,A3,A4
  4376. 0000302E  49ED DC18                lea.l      A4, [A5 - 0x23E8]
  4377. 00003032  47ED D916                lea.l      A3, [A5 - 0x26EA]
  4378. 00003036  302D D914                move.w     D0, [A5 - 0x26EC]
  4379. 0000303A  B06D DC16                cmp.w      D0, [A5 - 0x23EA]
  4380. 0000303E  6D06                     blt        +0x8 /* 00003046 */
  4381. 00003040  3E2D D914                move.w     D7, [A5 - 0x26EC]
  4382. 00003044  6014                     bra        +0x16 /* 0000305A */
  4383. label00003046:
  4384. 00003046  3E2D DC16                move.w     D7, [A5 - 0x23EA]
  4385. 0000304A  600E                     bra        +0x10 /* 0000305A */
  4386. label0000304C:
  4387. 0000304C  2C14                     move.l     D6, [A4]
  4388. 0000304E  28D3                     move.l     [A4]+, [A3]
  4389. 00003050  26C6                     move.l     [A3]+, D6
  4390. 00003052  2C14                     move.l     D6, [A4]
  4391. 00003054  28D3                     move.l     [A4]+, [A3]
  4392. 00003056  26C6                     move.l     [A3]+, D6
  4393. 00003058  5347                     subq.w     D7, 1
  4394. label0000305A:
  4395. 0000305A  4A47                     tst.w      D7
  4396. 0000305C  6EEE                     bgt        -0x10 /* 0000304C */
  4397. 0000305E  3E2D DC16                move.w     D7, [A5 - 0x23EA]
  4398. 00003062  3B6D D914 DC16           move.w     [A5 - 0x23EA], [A5 - 0x26EC]
  4399. 00003068  3B47 D914                move.w     [A5 - 0x26EC], D7
  4400. 0000306C  49ED DC18                lea.l      A4, [A5 - 0x23E8]
  4401. 00003070  3E2D DC16                move.w     D7, [A5 - 0x23EA]
  4402. 00003074  600C                     bra        +0xE /* 00003082 */
  4403. label00003076:
  4404. 00003076  2F0C                     move.l     -[A7], A4
  4405. 00003078  4EBA FE30                jsr        [PC - 0x1D0 /* 00002EAA */]
  4406. 0000307C  508C                     addq.l     A4, 8
  4407. 0000307E  5347                     subq.w     D7, 1
  4408. 00003080  588F                     addq.l     A7, 4
  4409. label00003082:
  4410. 00003082  4A47                     tst.w      D7
  4411. 00003084  6EF0                     bgt        -0xE /* 00003076 */
  4412. 00003086  49ED D916                lea.l      A4, [A5 - 0x26EA]
  4413. 0000308A  3E2D D914                move.w     D7, [A5 - 0x26EC]
  4414. 0000308E  600C                     bra        +0xE /* 0000309C */
  4415. label00003090:
  4416. 00003090  2F0C                     move.l     -[A7], A4
  4417. 00003092  4EBA 001A                jsr        [PC + 0x1A /* 000030AE */]
  4418. 00003096  508C                     addq.l     A4, 8
  4419. 00003098  5347                     subq.w     D7, 1
  4420. 0000309A  588F                     addq.l     A7, 4
  4421. label0000309C:
  4422. 0000309C  4A47                     tst.w      D7
  4423. 0000309E  6EF0                     bgt        -0xE /* 00003090 */
  4424. 000030A0  426D D914                clr.w      [A5 - 0x26EC]
  4425. 000030A4  422D D912                clr.b      [A5 - 0x26EE]
  4426. 000030A8  4CDF 18C0                movem.l    D6,D7,A3,A4, [A7]+
  4427. 000030AC  4E75                     rts
  4428. export_23:
  4429. fn000030AE:
  4430. 000030AE  4E56 0000                link       A6, 0
  4431. 000030B2  2F0C                     move.l     -[A7], A4
  4432. 000030B4  286E 0008                movea.l    A4, [A6 + 0x8]
  4433. 000030B8  2F2D D90A                move.l     -[A7], [A5 - 0x26F6]
  4434. 000030BC  2F2D D90E                move.l     -[A7], [A5 - 0x26F2]
  4435. 000030C0  2F0C                     move.l     -[A7], A4
  4436. 000030C2  2F0C                     move.l     -[A7], A4
  4437. 000030C4  4267                     clr.w      -[A7]
  4438. 000030C6  42A7                     clr.l      -[A7]
  4439. 000030C8  A8EC                     syscall    CopyBits
  4440. 000030CA  285F                     movea.l    A4, [A7]+
  4441. 000030CC  4E5E                     unlink     A6
  4442. 000030CE  4E75                     rts
  4443. 000030D0  4E56 FFF8                link       A6, -0x0008
  4444. 000030D4  48E7 0F00                movem.l    -[A7], D4,D5,D6,D7
  4445. 000030D8  3E2E 0008                move.w     D7, [A6 + 0x8]
  4446. 000030DC  3A2E 000A                move.w     D5, [A6 + 0xA]
  4447. 000030E0  4A2D D6A0                tst.b      [A5 - 0x2960]
  4448. 000030E4  6700 00B0                beq        +0xB2 /* 00003196 */
  4449. 000030E8  2D6D D6B0 FFF8           move.l     [A6 - 0x8], [A5 - 0x2950]
  4450. 000030EE  2D6D D6B4 FFFC           move.l     [A6 - 0x4], [A5 - 0x294C]
  4451. 000030F4  4A47                     tst.w      D7
  4452. 000030F6  6F18                     ble        +0x1A /* 00003110 */
  4453. 000030F8  3C2E FFFE                move.w     D6, [A6 - 0x2]
  4454. 000030FC  9C6E FFFA                sub.w      D6, [A6 - 0x6]
  4455. 00003100  48C6                     ext.l      D6
  4456. 00003102  8DC7                     divs.w     D6, D7
  4457. 00003104  302E FFFA                move.w     D0, [A6 - 0x6]
  4458. 00003108  D047                     add.w      D0, D7
  4459. 0000310A  3D40 FFFE                move.w     [A6 - 0x2], D0
  4460. 0000310E  601A                     bra        +0x1C /* 0000312A */
  4461. label00003110:
  4462. 00003110  4A47                     tst.w      D7
  4463. 00003112  6C16                     bge        +0x18 /* 0000312A */
  4464. 00003114  3C2E FFFA                move.w     D6, [A6 - 0x6]
  4465. 00003118  9C6E FFFE                sub.w      D6, [A6 - 0x2]
  4466. 0000311C  48C6                     ext.l      D6
  4467. 0000311E  8DC7                     divs.w     D6, D7
  4468. 00003120  302E FFFE                move.w     D0, [A6 - 0x2]
  4469. 00003124  D047                     add.w      D0, D7
  4470. 00003126  3D40 FFFA                move.w     [A6 - 0x6], D0
  4471. label0000312A:
  4472. 0000312A  4A45                     tst.w      D5
  4473. 0000312C  6F18                     ble        +0x1A /* 00003146 */
  4474. 0000312E  3C2E FFFC                move.w     D6, [A6 - 0x4]
  4475. 00003132  9C6E FFF8                sub.w      D6, [A6 - 0x8]
  4476. 00003136  48C6                     ext.l      D6
  4477. 00003138  8DC5                     divs.w     D6, D5
  4478. 0000313A  302E FFF8                move.w     D0, [A6 - 0x8]
  4479. 0000313E  D045                     add.w      D0, D5
  4480. 00003140  3D40 FFFC                move.w     [A6 - 0x4], D0
  4481. 00003144  604C                     bra        +0x4E /* 00003192 */
  4482. label00003146:
  4483. 00003146  4A45                     tst.w      D5
  4484. 00003148  6C48                     bge        +0x4A /* 00003192 */
  4485. 0000314A  3C2E FFF8                move.w     D6, [A6 - 0x8]
  4486. 0000314E  9C6E FFFC                sub.w      D6, [A6 - 0x4]
  4487. 00003152  48C6                     ext.l      D6
  4488. 00003154  8DC5                     divs.w     D6, D5
  4489. 00003156  302E FFFC                move.w     D0, [A6 - 0x4]
  4490. 0000315A  D045                     add.w      D0, D5
  4491. 0000315C  3D40 FFF8                move.w     [A6 - 0x8], D0
  4492. 00003160  6030                     bra        +0x32 /* 00003192 */
  4493. label00003162:
  4494. 00003162  42A7                     clr.l      -[A7]
  4495. 00003164  A975                     syscall    TickCount
  4496. 00003166  281F                     move.l     D4, [A7]+
  4497. 00003168  2F2D D90A                move.l     -[A7], [A5 - 0x26F6]
  4498. 0000316C  2F2D D90E                move.l     -[A7], [A5 - 0x26F2]
  4499. 00003170  486E FFF8                pea.l      [A6 - 0x8]
  4500. 00003174  486E FFF8                pea.l      [A6 - 0x8]
  4501. 00003178  4267                     clr.w      -[A7]
  4502. 0000317A  42A7                     clr.l      -[A7]
  4503. 0000317C  A8EC                     syscall    CopyBits
  4504. label0000317E:
  4505. 0000317E  42A7                     clr.l      -[A7]
  4506. 00003180  A975                     syscall    TickCount
  4507. 00003182  B89F                     cmp.l      D4, [A7]+
  4508. 00003184  67F8                     beq        -0x6 /* 0000317E */
  4509. 00003186  486E FFF8                pea.l      [A6 - 0x8]
  4510. 0000318A  3F07                     move.w     -[A7], D7
  4511. 0000318C  3F05                     move.w     -[A7], D5
  4512. 0000318E  A8A8                     syscall    OffsetRect
  4513. 00003190  5346                     subq.w     D6, 1
  4514. label00003192:
  4515. 00003192  4A46                     tst.w      D6
  4516. 00003194  66CC                     bne        -0x32 /* 00003162 */
  4517. label00003196:
  4518. 00003196  4CDF 00F0                movem.l    D4,D5,D6,D7, [A7]+
  4519. 0000319A  4E5E                     unlink     A6
  4520. 0000319C  4E75                     rts
  4521. fn0000319E:
  4522. 0000319E  4E56 0000                link       A6, 0
  4523. 000031A2  2F07                     move.l     -[A7], D7
  4524. 000031A4  4A2D D6A1                tst.b      [A5 - 0x295F]
  4525. 000031A8  6700 0088                beq        +0x8A /* 00003232 */
  4526. 000031AC  2F3C 000C 0000           move.l     -[A7], 0xC0000
  4527. 000031B2  4EBA 00C4                jsr        [PC + 0xC4 /* 00003278 */]
  4528. 000031B6  588F                     addq.l     A7, 4
  4529. 000031B8  6050                     bra        +0x52 /* 0000320A */
  4530. label000031BA:
  4531. 000031BA  302E 000A                move.w     D0, [A6 + 0xA]
  4532. 000031BE  D16D DF54                add.w      [A5 - 0x20AC], D0
  4533. 000031C2  4A6D DF54                tst.w      [A5 - 0x20AC]
  4534. 000031C6  6C04                     bge        +0x6 /* 000031CC */
  4535. 000031C8  426D DF54                clr.w      [A5 - 0x20AC]
  4536. label000031CC:
  4537. 000031CC  0C6D 0100 DF54           cmpi.w     [A5 - 0x20AC], 0x100
  4538. 000031D2  6F06                     ble        +0x8 /* 000031DA */
  4539. 000031D4  3B7C 0100 DF54           move.w     [A5 - 0x20AC], 0x100
  4540. label000031DA:
  4541. 000031DA  42A7                     clr.l      -[A7]
  4542. 000031DC  A975                     syscall    TickCount
  4543. 000031DE  2E1F                     move.l     D7, [A7]+
  4544. 000031E0  3F2D DF54                move.w     -[A7], [A5 - 0x20AC]
  4545. 000031E4  2F2D D6C8                move.l     -[A7], [A5 - 0x2938]
  4546. 000031E8  4EBA 004E                jsr        [PC + 0x4E /* 00003238 */]
  4547. 000031EC  5C8F                     addq.l     A7, 6
  4548. label000031EE:
  4549. 000031EE  42A7                     clr.l      -[A7]
  4550. 000031F0  A975                     syscall    TickCount
  4551. 000031F2  BE9F                     cmp.l      D7, [A7]+
  4552. 000031F4  67F8                     beq        -0x6 /* 000031EE */
  4553. 000031F6  2F2D D6A6                move.l     -[A7], [A5 - 0x295A]
  4554. 000031FA  2F2D D6C8                move.l     -[A7], [A5 - 0x2938]
  4555. 000031FE  42A7                     clr.l      -[A7]
  4556. 00003200  3F2D D6CC                move.w     -[A7], [A5 - 0x2934]
  4557. 00003204  AA9A                     syscall    AnimatePalette
  4558. 00003206  536E 0008                subq.w     [A6 + 0x8], 1
  4559. label0000320A:
  4560. 0000320A  4A6E 0008                tst.w      [A6 + 0x8]
  4561. 0000320E  66AA                     bne        -0x54 /* 000031BA */
  4562. 00003210  0C6D 0006 D590           cmpi.w     [A5 - 0x2A70], 0x6
  4563. 00003216  660E                     bne        +0x10 /* 00003226 */
  4564. 00003218  2F3C 000C 0000           move.l     -[A7], 0xC0000
  4565. 0000321E  4EBA 0058                jsr        [PC + 0x58 /* 00003278 */]
  4566. 00003222  588F                     addq.l     A7, 4
  4567. 00003224  600C                     bra        +0xE /* 00003232 */
  4568. label00003226:
  4569. 00003226  2F3C 000A 0000           move.l     -[A7], 0xA0000 /* '\n\0\0' */
  4570. 0000322C  4EBA 004A                jsr        [PC + 0x4A /* 00003278 */]
  4571. 00003230  588F                     addq.l     A7, 4
  4572. label00003232:
  4573. 00003232  2E1F                     move.l     D7, [A7]+
  4574. 00003234  4E5E                     unlink     A6
  4575. 00003236  4E75                     rts
  4576. fn00003238:
  4577. 00003238  4E56 0000                link       A6, 0
  4578. 0000323C  226D FF62                movea.l    A1, [A5 - 0x9E]
  4579. 00003240  2251                     movea.l    A1, [A1]
  4580. 00003242  322D FF66                move.w     D1, [A5 - 0x9A]
  4581. 00003246  206E 0008                movea.l    A0, [A6 + 0x8]
  4582. 0000324A  2050                     movea.l    A0, [A0]
  4583. 0000324C  342E 000C                move.w     D2, [A6 + 0xC]
  4584. 00003250  20D9                     move.l     [A0]+, [A1]+
  4585. 00003252  20D9                     move.l     [A0]+, [A1]+
  4586. 00003254  601A                     bra        +0x1C /* 00003270 */
  4587. label00003256:
  4588. 00003256  30D9                     move.w     [A0]+, [A1]+
  4589. 00003258  3019                     move.w     D0, [A1]+
  4590. 0000325A  C0C2                     mulu.w     D0, D2
  4591. 0000325C  E088                     lsr        D0, 8
  4592. 0000325E  30C0                     move.w     [A0]+, D0
  4593. 00003260  3019                     move.w     D0, [A1]+
  4594. 00003262  C0C2                     mulu.w     D0, D2
  4595. 00003264  E088                     lsr        D0, 8
  4596. 00003266  30C0                     move.w     [A0]+, D0
  4597. 00003268  3019                     move.w     D0, [A1]+
  4598. 0000326A  C0C2                     mulu.w     D0, D2
  4599. 0000326C  E088                     lsr        D0, 8
  4600. 0000326E  30C0                     move.w     [A0]+, D0
  4601. label00003270:
  4602. 00003270  51C9 FFE4                dbf        D1, -0x1E /* 00003256 */
  4603. 00003274  4E5E                     unlink     A6
  4604. 00003276  4E75                     rts
  4605. fn00003278:
  4606. 00003278  4E56 0000                link       A6, 0
  4607. 0000327C  2F07                     move.l     -[A7], D7
  4608. 0000327E  4A2D D69F                tst.b      [A5 - 0x2961]
  4609. 00003282  6722                     beq        +0x24 /* 000032A6 */
  4610. 00003284  7E00                     moveq.l    D7, 0x00
  4611. 00003286  6012                     bra        +0x14 /* 0000329A */
  4612. label00003288:
  4613. 00003288  2F2D D6C4                move.l     -[A7], [A5 - 0x293C]
  4614. 0000328C  3F07                     move.w     -[A7], D7
  4615. 0000328E  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  4616. 00003292  3F2E 000A                move.w     -[A7], [A6 + 0xA]
  4617. 00003296  AA9E                     syscall    SetEntryUsage
  4618. 00003298  5247                     addq.w     D7, 1
  4619. label0000329A:
  4620. 0000329A  BE6D D6CC                cmp.w      D7, [A5 - 0x2934]
  4621. 0000329E  6DE8                     blt        -0x16 /* 00003288 */
  4622. 000032A0  2F2D D6A6                move.l     -[A7], [A5 - 0x295A]
  4623. 000032A4  AA94                     syscall    ActivatePalette
  4624. label000032A6:
  4625. 000032A6  2E1F                     move.l     D7, [A7]+
  4626. 000032A8  4E5E                     unlink     A6
  4627. 000032AA  4E75                     rts
  4628. export_24:
  4629. 000032AC  4E56 0000                link       A6, 0
  4630. 000032B0  48E7 3820                movem.l    -[A7], D2,D3,D4,A2
  4631. 000032B4  246E 0008                movea.l    A2, [A6 + 0x8]
  4632. 000032B8  282E 000C                move.l     D4, [A6 + 0xC]
  4633. 000032BC  226E 0010                movea.l    A1, [A6 + 0x10]
  4634. label000032C0:
  4635. 000032C0  5384                     subq.l     D4, 1
  4636. 000032C2  6B3E                     bmi        +0x40 /* 00003302 */
  4637. 000032C4  141A                     move.b     D2, [A2]+
  4638. 000032C6  7607                     moveq.l    D3, 0x07
  4639. label000032C8:
  4640. 000032C8  E20A                     lsr        D2.b, 1
  4641. 000032CA  650C                     bcs        +0xE /* 000032D8 */
  4642. 000032CC  5384                     subq.l     D4, 1
  4643. 000032CE  6B32                     bmi        +0x34 /* 00003302 */
  4644. 000032D0  12DA                     move.b     [A1]+, [A2]+
  4645. 000032D2  51CB FFF4                dbf        D3, -0xE /* 000032C8 */
  4646. 000032D6  60E8                     bra        -0x16 /* 000032C0 */
  4647. label000032D8:
  4648. 000032D8  5584                     subq.l     D4, 2
  4649. 000032DA  6B26                     bmi        +0x28 /* 00003302 */
  4650. 000032DC  101A                     move.b     D0, [A2]+
  4651. 000032DE  E148                     lsl        D0.w, 8
  4652. 000032E0  101A                     move.b     D0, [A2]+
  4653. 000032E2  3200                     move.w     D1, D0
  4654. 000032E4  2049                     movea.l    A0, A1
  4655. 000032E6  0240 0FFF                andi.w     D0, 0xFFF
  4656. 000032EA  5240                     addq.w     D0, 1
  4657. 000032EC  90C0                     sub.w      A0, D0
  4658. 000032EE  E959                     rol        D1.w, 4
  4659. 000032F0  0241 000F                andi.w     D1, 0xF
  4660. 000032F4  5441                     addq.w     D1, 2
  4661. label000032F6:
  4662. 000032F6  12D8                     move.b     [A1]+, [A0]+
  4663. 000032F8  51C9 FFFC                dbf        D1, -0x6 /* 000032F6 */
  4664. 000032FC  51CB FFCA                dbf        D3, -0x38 /* 000032C8 */
  4665. 00003300  60BE                     bra        -0x40 /* 000032C0 */
  4666. label00003302:
  4667. 00003302  4CDF 041C                movem.l    D2,D3,D4,A2, [A7]+
  4668. 00003306  4E5E                     unlink     A6
  4669. 00003308  4E75                     rts
  4670. export_25:
  4671. 0000330A  4E56 0000                link       A6, 0
  4672. 0000330E  48E7 0708                movem.l    -[A7], D5,D6,D7,A4
  4673. 00003312  3A2E 0008                move.w     D5, [A6 + 0x8]
  4674. 00003316  7E00                     moveq.l    D7, 0x00
  4675. 00003318  7C00                     moveq.l    D6, 0x00
  4676. 0000331A  0645 1004                addi.w     D5, 0x1004
  4677. 0000331E  49ED DF1E                lea.l      A4, [A5 - 0x20E2]
  4678. 00003322  D8C6                     add.w      A4, D6
  4679. 00003324  D8C6                     add.w      A4, D6
  4680. 00003326  600C                     bra        +0xE /* 00003334 */
  4681. label00003328:
  4682. 00003328  BA54                     cmp.w      D5, [A4]
  4683. 0000332A  6604                     bne        +0x6 /* 00003330 */
  4684. 0000332C  7E01                     moveq.l    D7, 0x01
  4685. 0000332E  600A                     bra        +0xC /* 0000333A */
  4686. label00003330:
  4687. 00003330  5246                     addq.w     D6, 1
  4688. 00003332  548C                     addq.l     A4, 2
  4689. label00003334:
  4690. 00003334  BC6D CFE2                cmp.w      D6, [A5 - 0x301E]
  4691. 00003338  6DEE                     blt        -0x10 /* 00003328 */
  4692. label0000333A:
  4693. 0000333A  4A07                     tst.b      D7
  4694. 0000333C  6612                     bne        +0x14 /* 00003350 */
  4695. 0000333E  302D CFE2                move.w     D0, [A5 - 0x301E]
  4696. 00003342  204D                     movea.l    A0, A5
  4697. 00003344  D0C0                     add.w      A0, D0
  4698. 00003346  D0C0                     add.w      A0, D0
  4699. 00003348  3145 DF1E                move.w     [A0 - 0x20E2], D5
  4700. 0000334C  526D CFE2                addq.w     [A5 - 0x301E], 1
  4701. label00003350:
  4702. 00003350  302D CFE2                move.w     D0, [A5 - 0x301E]
  4703. 00003354  204D                     movea.l    A0, A5
  4704. 00003356  D0C0                     add.w      A0, D0
  4705. 00003358  D0C0                     add.w      A0, D0
  4706. 0000335A  317C FFFF DF1E           move.w     [A0 - 0x20E2], 0xFFFF
  4707. 00003360  4CDF 10E0                movem.l    D5,D6,D7,A4, [A7]+
  4708. 00003364  4E5E                     unlink     A6
  4709. 00003366  4E75                     rts
  4710. export_26:
  4711. 00003368  4E56 0000                link       A6, 0
  4712. 0000336C  48E7 0308                movem.l    -[A7], D6,D7,A4
  4713. 00003370  7E00                     moveq.l    D7, 0x00
  4714. 00003372  7C00                     moveq.l    D6, 0x00
  4715. 00003374  066E 1004 0008           addi.w     [A6 + 0x8], 0x1004
  4716. 0000337A  49ED DF1E                lea.l      A4, [A5 - 0x20E2]
  4717. 0000337E  D8C6                     add.w      A4, D6
  4718. 00003380  D8C6                     add.w      A4, D6
  4719. 00003382  601C                     bra        +0x1E /* 000033A0 */
  4720. label00003384:
  4721. 00003384  3014                     move.w     D0, [A4]
  4722. 00003386  B06E 0008                cmp.w      D0, [A6 + 0x8]
  4723. 0000338A  6602                     bne        +0x4 /* 0000338E */
  4724. 0000338C  7E01                     moveq.l    D7, 0x01
  4725. label0000338E:
  4726. 0000338E  4A07                     tst.b      D7
  4727. 00003390  670A                     beq        +0xC /* 0000339C */
  4728. 00003392  204D                     movea.l    A0, A5
  4729. 00003394  D0C6                     add.w      A0, D6
  4730. 00003396  D0C6                     add.w      A0, D6
  4731. 00003398  38A8 DF20                move.w     [A4], [A0 - 0x20E0]
  4732. label0000339C:
  4733. 0000339C  5246                     addq.w     D6, 1
  4734. 0000339E  548C                     addq.l     A4, 2
  4735. label000033A0:
  4736. 000033A0  BC6D CFE2                cmp.w      D6, [A5 - 0x301E]
  4737. 000033A4  6DDE                     blt        -0x20 /* 00003384 */
  4738. 000033A6  4A07                     tst.b      D7
  4739. 000033A8  6704                     beq        +0x6 /* 000033AE */
  4740. 000033AA  536D CFE2                subq.w     [A5 - 0x301E], 1
  4741. label000033AE:
  4742. 000033AE  4CDF 10C0                movem.l    D6,D7,A4, [A7]+
  4743. 000033B2  4E5E                     unlink     A6
  4744. 000033B4  4E75                     rts
  4745. fn000033B6:
  4746. 000033B6  4A2D CFE0                tst.b      [A5 - 0x3020]
  4747. 000033BA  6616                     bne        +0x18 /* 000033D2 */
  4748. 000033BC  4A2D CFE1                tst.b      [A5 - 0x301F]
  4749. 000033C0  6610                     bne        +0x12 /* 000033D2 */
  4750. 000033C2  4A2D DF1B                tst.b      [A5 - 0x20E5]
  4751. 000033C6  6606                     bne        +0x8 /* 000033CE */
  4752. 000033C8  4A2D DF1C                tst.b      [A5 - 0x20E4]
  4753. 000033CC  6704                     beq        +0x6 /* 000033D2 */
  4754. label000033CE:
  4755. 000033CE  4EBA 0280                jsr        [PC + 0x280 /* 00003650 */]
  4756. label000033D2:
  4757. 000033D2  1B7C 0001 CFE0           move.b     [A5 - 0x3020], 0x1
  4758. 000033D8  422D CFE1                clr.b      [A5 - 0x301F]
  4759. 000033DC  3B7C FFFF DF4E           move.w     [A5 - 0x20B2], 0xFFFF
  4760. 000033E2  3B7C FFFF DF52           move.w     [A5 - 0x20AE], 0xFFFF
  4761. 000033E8  4E75                     rts
  4762. fn000033EA:
  4763. 000033EA  4A2D CFE0                tst.b      [A5 - 0x3020]
  4764. 000033EE  6606                     bne        +0x8 /* 000033F6 */
  4765. 000033F0  4A2D CFE1                tst.b      [A5 - 0x301F]
  4766. 000033F4  6704                     beq        +0x6 /* 000033FA */
  4767. label000033F6:
  4768. 000033F6  4EBA 030C                jsr        [PC + 0x30C /* 00003704 */]
  4769. label000033FA:
  4770. 000033FA  422D CFE0                clr.b      [A5 - 0x3020]
  4771. 000033FE  422D CFE1                clr.b      [A5 - 0x301F]
  4772. 00003402  3B7C FFFF DF4E           move.w     [A5 - 0x20B2], 0xFFFF
  4773. 00003408  3B7C FFFF DF52           move.w     [A5 - 0x20AE], 0xFFFF
  4774. 0000340E  4E75                     rts
  4775. export_27:
  4776. fn00003410:
  4777. 00003410  4E56 0000                link       A6, 0
  4778. 00003414  2F07                     move.l     -[A7], D7
  4779. 00003416  3E2E 0008                move.w     D7, [A6 + 0x8]
  4780. 0000341A  4A6D DF4E                tst.w      [A5 - 0x20B2]
  4781. 0000341E  6D22                     blt        +0x24 /* 00003442 */
  4782. 00003420  0C47 000B                cmpi.w     D7, 0xB
  4783. 00003424  671C                     beq        +0x1E /* 00003442 */
  4784. 00003426  0C47 000E                cmpi.w     D7, 0xE
  4785. 0000342A  6716                     beq        +0x18 /* 00003442 */
  4786. 0000342C  BE6D DF4E                cmp.w      D7, [A5 - 0x20B2]
  4787. 00003430  6F1A                     ble        +0x1C /* 0000344C */
  4788. 00003432  0C6D 000B DF4E           cmpi.w     [A5 - 0x20B2], 0xB
  4789. 00003438  6712                     beq        +0x14 /* 0000344C */
  4790. 0000343A  0C6D 000E DF4E           cmpi.w     [A5 - 0x20B2], 0xE
  4791. 00003440  670A                     beq        +0xC /* 0000344C */
  4792. label00003442:
  4793. 00003442  3B47 DF4E                move.w     [A5 - 0x20B2], D7
  4794. 00003446  3B6E 000A DF50           move.w     [A5 - 0x20B0], [A6 + 0xA]
  4795. label0000344C:
  4796. 0000344C  2E1F                     move.l     D7, [A7]+
  4797. 0000344E  4E5E                     unlink     A6
  4798. 00003450  4E75                     rts
  4799. fn00003452:
  4800. 00003452  4E56 0000                link       A6, 0
  4801. 00003456  202E 0008                move.l     D0, [A6 + 0x8]
  4802. 0000345A  322E 000C                move.w     D1, [A6 + 0xC]
  4803. 0000345E  6762                     beq        +0x64 /* 000034C2 */
  4804. 00003460  6A10                     bpl        +0x12 /* 00003472 */
  4805. label00003462:
  4806. 00003462  E288                     lsr        D0, 1
  4807. 00003464  0641 0018                addi.w     D1, 0x18
  4808. 00003468  6BF8                     bmi        -0x6 /* 00003462 */
  4809. 0000346A  600C                     bra        +0xE /* 00003478 */
  4810. label0000346C:
  4811. 0000346C  E388                     lsl        D0, 1
  4812. 0000346E  0441 0018                subi.w     D1, 0x18
  4813. label00003472:
  4814. 00003472  0C41 0018                cmpi.w     D1, 0x18
  4815. 00003476  6CF4                     bge        -0xA /* 0000346C */
  4816. label00003478:
  4817. 00003478  D241                     add.w      D1, D1
  4818. 0000347A  323B 1016                move.w     D1, [PC + D1.w + 0x16]
  4819. 0000347E  3401                     move.w     D2, D1
  4820. 00003480  4840                     swap.w     D0
  4821. 00003482  C2C0                     mulu.w     D1, D0
  4822. 00003484  4840                     swap.w     D0
  4823. 00003486  C4C0                     mulu.w     D2, D0
  4824. 00003488  4242                     clr.w      D2
  4825. 0000348A  4842                     swap.w     D2
  4826. 0000348C  D282                     add.l      D1, D2
  4827. 0000348E  D081                     add.l      D0, D1
  4828. 00003490  6030                     bra        +0x32 /* 000034C2 */
  4829. 00003492  0000 0780                ori.b      D0, 0x80
  4830. 00003496  0F39 172C 1F5A           btst       [0x172C1F5A], D7
  4831. 0000349C  27C5 3070                move.l     [PC + D3.w + 0x70], D5
  4832. 000034A0  395C 428A                move.w     [A4 + 0x428A], [A4]+
  4833. 000034A4  4BFE                     lea.l      A5, <<invalid special address>>
  4834. 000034A6  55B8 5FBB                subq.l     [0x00005FBB], 2
  4835. 000034AA  6A0A                     bpl        +0xC /* 000034B6 */
  4836. 000034AC  74A6                     moveq.l    D2, 0xFFFFFFA6
  4837. 000034AE  7F91                     moveq.l    D7, 0xFFFFFF91
  4838. 000034B0  8ACE                     divu.w     D5, A6
  4839. 000034B2  9660                     sub.w      D3, -[A0]
  4840. 000034B4  A248                     syscall    PtrZone, flags=2
  4841. label000034B6:
  4842. 000034B6  AE8A                     syscall    0xA8A, auto_pop
  4843. 000034B8  BB28 C824                xor.b      [A0 - 0x37DC], D5
  4844. 000034BC  D582                     addx.l     D2, D2
  4845. 000034BE  E343                     asl        D3.w, 1
  4846. 000034C0  F16D                     .extension 0x16D <<F/4-5/0>> // unimplemented
  4847. label000034C2:
  4848. 000034C2  4E5E                     unlink     A6
  4849. 000034C4  4E75                     rts
  4850. fn000034C6:
  4851. 000034C6  48E7 0700                movem.l    -[A7], D5,D6,D7
  4852. 000034CA  4A6D DF4E                tst.w      [A5 - 0x20B2]
  4853. 000034CE  6D44                     blt        +0x46 /* 00003514 */
  4854. 000034D0  4A2D DF1B                tst.b      [A5 - 0x20E5]
  4855. 000034D4  6738                     beq        +0x3A /* 0000350E */
  4856. 000034D6  4A2D CFDE                tst.b      [A5 - 0x3022]
  4857. 000034DA  6732                     beq        +0x34 /* 0000350E */
  4858. 000034DC  3E2D DF4E                move.w     D7, [A5 - 0x20B2]
  4859. 000034E0  0647 1004                addi.w     D7, 0x1004
  4860. 000034E4  4A6D DF50                tst.w      [A5 - 0x20B0]
  4861. 000034E8  6718                     beq        +0x1A /* 00003502 */
  4862. 000034EA  3F07                     move.w     -[A7], D7
  4863. 000034EC  4EBA 1DC2                jsr        [PC + 0x1DC2 /* 000052B0 */]
  4864. 000034F0  2C00                     move.l     D6, D0
  4865. 000034F2  3EAD DF50                move.w     [A7], [A5 - 0x20B0]
  4866. 000034F6  2F06                     move.l     -[A7], D6
  4867. 000034F8  4EBA FF58                jsr        [PC - 0xA8 /* 00003452 */]
  4868. 000034FC  2A00                     move.l     D5, D0
  4869. 000034FE  5C8F                     addq.l     A7, 6
  4870. 00003500  6002                     bra        +0x4 /* 00003504 */
  4871. label00003502:
  4872. 00003502  7A00                     moveq.l    D5, 0x00
  4873. label00003504:
  4874. 00003504  2F05                     move.l     -[A7], D5
  4875. 00003506  3F07                     move.w     -[A7], D7
  4876. 00003508  4EBA 1E3C                jsr        [PC + 0x1E3C /* 00005346 */]
  4877. 0000350C  5C8F                     addq.l     A7, 6
  4878. label0000350E:
  4879. 0000350E  3B7C FFFF DF4E           move.w     [A5 - 0x20B2], 0xFFFF
  4880. label00003514:
  4881. 00003514  4CDF 00E0                movem.l    D5,D6,D7, [A7]+
  4882. 00003518  4E75                     rts
  4883. 0000351A  4A2D CFDE                tst.b      [A5 - 0x3022]
  4884. 0000351E  6704                     beq        +0x6 /* 00003524 */
  4885. 00003520  4EBA 210A                jsr        [PC + 0x210A /* 0000562C */]
  4886. label00003524:
  4887. 00003524  3B7C FFFF DF4E           move.w     [A5 - 0x20B2], 0xFFFF
  4888. 0000352A  4E75                     rts
  4889. fn0000352C:
  4890. 0000352C  4A6D DF52                tst.w      [A5 - 0x20AE]
  4891. 00003530  6D22                     blt        +0x24 /* 00003554 */
  4892. 00003532  4A2D DF1C                tst.b      [A5 - 0x20E4]
  4893. 00003536  6716                     beq        +0x18 /* 0000354E */
  4894. 00003538  4A2D CFDE                tst.b      [A5 - 0x3022]
  4895. 0000353C  6710                     beq        +0x12 /* 0000354E */
  4896. 0000353E  306D DF52                movea.w    A0, [A5 - 0x20AE]
  4897. 00003542  2F08                     move.l     -[A7], A0
  4898. 00003544  3F3C 0001                move.w     -[A7], 0x1
  4899. 00003548  4EBA 08F8                jsr        [PC + 0x8F8 /* 00003E42 */]
  4900. 0000354C  5C8F                     addq.l     A7, 6
  4901. label0000354E:
  4902. 0000354E  3B7C FFFF DF52           move.w     [A5 - 0x20AE], 0xFFFF
  4903. label00003554:
  4904. 00003554  4E75                     rts
  4905. fn00003556:
  4906. 00003556  4E56 0000                link       A6, 0
  4907. 0000355A  4A2D DF1C                tst.b      [A5 - 0x20E4]
  4908. 0000355E  6716                     beq        +0x18 /* 00003576 */
  4909. 00003560  4A2D CFDE                tst.b      [A5 - 0x3022]
  4910. 00003564  6710                     beq        +0x12 /* 00003576 */
  4911. 00003566  306E 0008                movea.w    A0, [A6 + 0x8]
  4912. 0000356A  2F08                     move.l     -[A7], A0
  4913. 0000356C  3F3C 000D                move.w     -[A7], 0xD /* '\r' */
  4914. 00003570  4EBA 08D0                jsr        [PC + 0x8D0 /* 00003E42 */]
  4915. 00003574  5C8F                     addq.l     A7, 6
  4916. label00003576:
  4917. 00003576  4E5E                     unlink     A6
  4918. 00003578  4E75                     rts
  4919. 0000357A  4A2D CFDE                tst.b      [A5 - 0x3022]
  4920. 0000357E  670C                     beq        +0xE /* 0000358C */
  4921. 00003580  42A7                     clr.l      -[A7]
  4922. 00003582  3F3C 0002                move.w     -[A7], 0x2
  4923. 00003586  4EBA 08BA                jsr        [PC + 0x8BA /* 00003E42 */]
  4924. 0000358A  5C8F                     addq.l     A7, 6
  4925. label0000358C:
  4926. 0000358C  3B7C FFFF DF52           move.w     [A5 - 0x20AE], 0xFFFF
  4927. 00003592  4E75                     rts
  4928. 00003594  4A2D CFDE                tst.b      [A5 - 0x3022]
  4929. 00003598  670C                     beq        +0xE /* 000035A6 */
  4930. 0000359A  4EBA 2112                jsr        [PC + 0x2112 /* 000056AE */]
  4931. 0000359E  4A00                     tst.b      D0
  4932. 000035A0  6604                     bne        +0x6 /* 000035A6 */
  4933. 000035A2  7001                     moveq.l    D0, 0x01
  4934. 000035A4  601C                     bra        +0x1E /* 000035C2 */
  4935. label000035A6:
  4936. 000035A6  4A2D CFDE                tst.b      [A5 - 0x3022]
  4937. 000035AA  6714                     beq        +0x16 /* 000035C0 */
  4938. 000035AC  42A7                     clr.l      -[A7]
  4939. 000035AE  3F3C 0003                move.w     -[A7], 0x3
  4940. 000035B2  4EBA 088E                jsr        [PC + 0x88E /* 00003E42 */]
  4941. 000035B6  4A80                     tst.l      D0
  4942. 000035B8  5C8F                     addq.l     A7, 6
  4943. 000035BA  6604                     bne        +0x6 /* 000035C0 */
  4944. 000035BC  7001                     moveq.l    D0, 0x01
  4945. 000035BE  6002                     bra        +0x4 /* 000035C2 */
  4946. label000035C0:
  4947. 000035C0  7000                     moveq.l    D0, 0x00
  4948. label000035C2:
  4949. 000035C2  4E75                     rts
  4950. 000035C4  4E56 0000                link       A6, 0
  4951. 000035C8  2F07                     move.l     -[A7], D7
  4952. 000035CA  4A2D CFDE                tst.b      [A5 - 0x3022]
  4953. 000035CE  6720                     beq        +0x22 /* 000035F0 */
  4954. 000035D0  42A7                     clr.l      -[A7]
  4955. 000035D2  3F3C 0004                move.w     -[A7], 0x4
  4956. 000035D6  4EBA 086A                jsr        [PC + 0x86A /* 00003E42 */]
  4957. 000035DA  2E00                     move.l     D7, D0
  4958. 000035DC  4A87                     tst.l      D7
  4959. 000035DE  5C8F                     addq.l     A7, 6
  4960. 000035E0  6F0A                     ble        +0xC /* 000035EC */
  4961. 000035E2  BEAE 0008                cmp.l      D7, [A6 + 0x8]
  4962. 000035E6  6C04                     bge        +0x6 /* 000035EC */
  4963. 000035E8  7000                     moveq.l    D0, 0x00
  4964. 000035EA  6006                     bra        +0x8 /* 000035F2 */
  4965. label000035EC:
  4966. 000035EC  7001                     moveq.l    D0, 0x01
  4967. 000035EE  6002                     bra        +0x4 /* 000035F2 */
  4968. label000035F0:
  4969. 000035F0  7001                     moveq.l    D0, 0x01
  4970. label000035F2:
  4971. 000035F2  2E1F                     move.l     D7, [A7]+
  4972. 000035F4  4E5E                     unlink     A6
  4973. 000035F6  4E75                     rts
  4974. fn000035F8:
  4975. 000035F8  4A2D CFDE                tst.b      [A5 - 0x3022]
  4976. 000035FC  6716                     beq        +0x18 /* 00003614 */
  4977. 000035FE  4EBA 202C                jsr        [PC + 0x202C /* 0000562C */]
  4978. 00003602  4EBA 0E58                jsr        [PC + 0xE58 /* 0000445C */]
  4979. 00003606  422D CFDE                clr.b      [A5 - 0x3022]
  4980. 0000360A  A01C                     syscall    FreeMem
  4981. 0000360C  A04C                     syscall    CompactMem
  4982. 0000360E  1B7C 0001 CFDF           move.b     [A5 - 0x3021], 0x1
  4983. label00003614:
  4984. 00003614  4A2D CFE0                tst.b      [A5 - 0x3020]
  4985. 00003618  670A                     beq        +0xC /* 00003624 */
  4986. 0000361A  422D CFE0                clr.b      [A5 - 0x3020]
  4987. 0000361E  1B7C 0001 CFE1           move.b     [A5 - 0x301F], 0x1
  4988. label00003624:
  4989. 00003624  4E75                     rts
  4990. fn00003626:
  4991. 00003626  4A2D CFDF                tst.b      [A5 - 0x3021]
  4992. 0000362A  6712                     beq        +0x14 /* 0000363E */
  4993. 0000362C  4EBA 0E5A                jsr        [PC + 0xE5A /* 00004488 */]
  4994. 00003630  1B7C 0001 CFDE           move.b     [A5 - 0x3022], 0x1
  4995. 00003636  A01C                     syscall    FreeMem
  4996. 00003638  A04C                     syscall    CompactMem
  4997. 0000363A  422D CFDF                clr.b      [A5 - 0x3021]
  4998. label0000363E:
  4999. 0000363E  4A2D CFE1                tst.b      [A5 - 0x301F]
  5000. 00003642  670A                     beq        +0xC /* 0000364E */
  5001. 00003644  1B7C 0001 CFE0           move.b     [A5 - 0x3020], 0x1
  5002. 0000364A  422D CFE1                clr.b      [A5 - 0x301F]
  5003. label0000364E:
  5004. 0000364E  4E75                     rts
  5005. fn00003650:
  5006. 00003650  48E7 0300                movem.l    -[A7], D6,D7
  5007. 00003654  4A2D CFDE                tst.b      [A5 - 0x3022]
  5008. 00003658  6600 00A4                bne        +0xA6 /* 000036FE */
  5009. 0000365C  4A2D CFDF                tst.b      [A5 - 0x3021]
  5010. 00003660  6600 009C                bne        +0x9E /* 000036FE */
  5011. 00003664  4A2D CE5E                tst.b      [A5 - 0x31A2]
  5012. 00003668  6704                     beq        +0x6 /* 0000366E */
  5013. 0000366A  7E02                     moveq.l    D7, 0x02
  5014. 0000366C  6002                     bra        +0x4 /* 00003670 */
  5015. label0000366E:
  5016. 0000366E  7E01                     moveq.l    D7, 0x01
  5017. label00003670:
  5018. 00003670  4A2D DF1C                tst.b      [A5 - 0x20E4]
  5019. 00003674  6718                     beq        +0x1A /* 0000368E */
  5020. 00003676  3F07                     move.w     -[A7], D7
  5021. 00003678  3F2D D62A                move.w     -[A7], [A5 - 0x29D6]
  5022. 0000367C  3F2D D628                move.w     -[A7], [A5 - 0x29D8]
  5023. 00003680  3F2D D626                move.w     -[A7], [A5 - 0x29DA]
  5024. 00003684  4EBA 0C38                jsr        [PC + 0xC38 /* 000042BE */]
  5025. 00003688  3C00                     move.w     D6, D0
  5026. 0000368A  508F                     addq.l     A7, 8
  5027. 0000368C  6014                     bra        +0x16 /* 000036A2 */
  5028. label0000368E:
  5029. 0000368E  3F07                     move.w     -[A7], D7
  5030. 00003690  3F2D D62A                move.w     -[A7], [A5 - 0x29D6]
  5031. 00003694  3F2D D62A                move.w     -[A7], [A5 - 0x29D6]
  5032. 00003698  4267                     clr.w      -[A7]
  5033. 0000369A  4EBA 0C22                jsr        [PC + 0xC22 /* 000042BE */]
  5034. 0000369E  3C00                     move.w     D6, D0
  5035. 000036A0  508F                     addq.l     A7, 8
  5036. label000036A2:
  5037. 000036A2  4A46                     tst.w      D6
  5038. 000036A4  6658                     bne        +0x5A /* 000036FE */
  5039. 000036A6  4A2D DF1B                tst.b      [A5 - 0x20E5]
  5040. 000036AA  670E                     beq        +0x10 /* 000036BA */
  5041. 000036AC  4227                     clr.b      -[A7]
  5042. 000036AE  486D DF1E                pea.l      [A5 - 0x20E2]
  5043. 000036B2  4EBA 1910                jsr        [PC + 0x1910 /* 00004FC4 */]
  5044. 000036B6  3C00                     move.w     D6, D0
  5045. 000036B8  5C8F                     addq.l     A7, 6
  5046. label000036BA:
  5047. 000036BA  4878 0001                push.l     0x1
  5048. 000036BE  3F3C 0006                move.w     -[A7], 0x6
  5049. 000036C2  4EBA 077E                jsr        [PC + 0x77E /* 00003E42 */]
  5050. 000036C6  4297                     clr.l      [A7]
  5051. 000036C8  3F3C 0005                move.w     -[A7], 0x5
  5052. 000036CC  4EBA 0774                jsr        [PC + 0x774 /* 00003E42 */]
  5053. 000036D0  4A2D DF1C                tst.b      [A5 - 0x20E4]
  5054. 000036D4  508F                     addq.l     A7, 8
  5055. 000036D6  6718                     beq        +0x1A /* 000036F0 */
  5056. 000036D8  306D DF4C                movea.w    A0, [A5 - 0x20B4]
  5057. 000036DC  2F08                     move.l     -[A7], A0
  5058. 000036DE  4267                     clr.w      -[A7]
  5059. 000036E0  4EBA 0760                jsr        [PC + 0x760 /* 00003E42 */]
  5060. 000036E4  4297                     clr.l      [A7]
  5061. 000036E6  3F3C 0002                move.w     -[A7], 0x2
  5062. 000036EA  4EBA 0756                jsr        [PC + 0x756 /* 00003E42 */]
  5063. 000036EE  508F                     addq.l     A7, 8
  5064. label000036F0:
  5065. 000036F0  A01C                     syscall    FreeMem
  5066. 000036F2  A04C                     syscall    CompactMem
  5067. 000036F4  1B7C 0001 CFDE           move.b     [A5 - 0x3022], 0x1
  5068. 000036FA  422D CFDF                clr.b      [A5 - 0x3021]
  5069. label000036FE:
  5070. 000036FE  4CDF 00C0                movem.l    D6,D7, [A7]+
  5071. 00003702  4E75                     rts
  5072. fn00003704:
  5073. 00003704  4A2D CFDE                tst.b      [A5 - 0x3022]
  5074. 00003708  6606                     bne        +0x8 /* 00003710 */
  5075. 0000370A  4A2D CFDF                tst.b      [A5 - 0x3021]
  5076. 0000370E  6710                     beq        +0x12 /* 00003720 */
  5077. label00003710:
  5078. 00003710  4EBA 0CFE                jsr        [PC + 0xCFE /* 00004410 */]
  5079. 00003714  A01C                     syscall    FreeMem
  5080. 00003716  A04C                     syscall    CompactMem
  5081. 00003718  422D CFDE                clr.b      [A5 - 0x3022]
  5082. 0000371C  422D CFDF                clr.b      [A5 - 0x3021]
  5083. label00003720:
  5084. 00003720  4E75                     rts
  5085. fn00003722:
  5086. 00003722  4A78 028E                tst.w      [0x0000028E /* ROM85 */]
  5087. 00003726  6B22                     bmi        +0x24 /* 0000374A */
  5088. 00003728  303C 0090                move.w     D0, 0x90
  5089. 0000372C  A346                     syscall    GetOSTrapAddress, flags=3
  5090. 0000372E  2248                     movea.l    A1, A0
  5091. 00003730  303C 009F                move.w     D0, 0x9F
  5092. 00003734  A746                     syscall    GetToolBoxTrapAddress/GetToolTrapAddress, flags=7
  5093. 00003736  B3C8                     cmpa.l     A1, A0
  5094. 00003738  6710                     beq        +0x12 /* 0000374A */
  5095. 0000373A  225F                     movea.l    A1, [A7]+
  5096. 0000373C  205F                     movea.l    A0, [A7]+
  5097. 0000373E  301F                     move.w     D0, [A7]+
  5098. 00003740  2F09                     move.l     -[A7], A1
  5099. 00003742  A090                     syscall    SysEnvirons
  5100. 00003744  3F40 0004                move.w     [A7 + 0x4], D0
  5101. 00003748  4E75                     rts
  5102. label0000374A:
  5103. 0000374A  206F 0004                movea.l    A0, [A7 + 0x4]
  5104. 0000374E  303C 0001                move.w     D0, 0x1
  5105. 00003752  2248                     movea.l    A1, A0
  5106. 00003754  6006                     bra        +0x8 /* 0000375C */
  5107. 00003756  0313                     btst       [A3], D1
  5108. 00003758  0B02                     btst       D2, D5
  5109. 0000375A  0100                     btst       D0, D0
  5110. label0000375C:
  5111. 0000375C  303C 0010                move.w     D0, 0x10
  5112. 00003760  E240                     asr        D0.w, 1
  5113. 00003762  5340                     subq.w     D0, 1
  5114. label00003764:
  5115. 00003764  4258                     clr.w      [A0]+
  5116. 00003766  51C8 FFFC                dbf        D0, -0x6 /* 00003764 */
  5117. 0000376A  32BC 0001                move.w     [A1], 0x1
  5118. 0000376E  2078 02AE                movea.l    A0, [0x000002AE /* ROMBase */]
  5119. 00003772  337C FFFE 0002           move.w     [A1 + 0x2], 0xFFFE
  5120. 00003778  0C28 00FF 0009           cmpi.b     [A0 + 0x9], 0xFF
  5121. 0000377E  6742                     beq        +0x44 /* 000037C2 */
  5122. 00003780  4A28 0008                tst.b      [A0 + 0x8]
  5123. 00003784  6E20                     bgt        +0x22 /* 000037A6 */
  5124. 00003786  337C FFFF 0002           move.w     [A1 + 0x2], 0xFFFF
  5125. 0000378C  4A78 028E                tst.w      [0x0000028E /* ROM85 */]
  5126. 00003790  6B30                     bmi        +0x32 /* 000037C2 */
  5127. 00003792  337C 0001 0002           move.w     [A1 + 0x2], 0x1
  5128. 00003798  4A78 0B22                tst.w      [0x00000B22 /* HWCfgFlags */]
  5129. 0000379C  6A24                     bpl        +0x26 /* 000037C2 */
  5130. 0000379E  337C 0002 0002           move.w     [A1 + 0x2], 0x2
  5131. 000037A4  601C                     bra        +0x1E /* 000037C2 */
  5132. label000037A6:
  5133. 000037A6  4269 0002                clr.w      [A1 + 0x2]
  5134. 000037AA  0C28 0002 0008           cmpi.b     [A0 + 0x8], 0x2
  5135. 000037B0  6E10                     bgt        +0x12 /* 000037C2 */
  5136. 000037B2  6708                     beq        +0xA /* 000037BC */
  5137. 000037B4  337C 0004 0002           move.w     [A1 + 0x2], 0x4
  5138. 000037BA  6006                     bra        +0x8 /* 000037C2 */
  5139. label000037BC:
  5140. 000037BC  337C 0003 0002           move.w     [A1 + 0x2], 0x3
  5141. label000037C2:
  5142. 000037C2  4269 0004                clr.w      [A1 + 0x4]
  5143. 000037C6  0C38 0002 012F           cmpi.b     [0x0000012F /* CPUFlag */], 0x2
  5144. 000037CC  6E0A                     bgt        +0xC /* 000037D8 */
  5145. 000037CE  1038 012F                move.b     D0, [0x0000012F /* CPUFlag */]
  5146. 000037D2  5240                     addq.w     D0, 1
  5147. 000037D4  1340 0007                move.b     [A1 + 0x7], D0
  5148. label000037D8:
  5149. 000037D8  4A78 028E                tst.w      [0x0000028E /* ROM85 */]
  5150. 000037DC  6B0E                     bmi        +0x10 /* 000037EC */
  5151. 000037DE  0838 0004 0B22           btst.b     [0x00000B22 /* HWCfgFlags */], 0x4
  5152. 000037E4  6706                     beq        +0x8 /* 000037EC */
  5153. 000037E6  137C 0001 0008           move.b     [A1 + 0x8], 0x1
  5154. label000037EC:
  5155. 000037EC  0C78 3FFF 028E           cmpi.w     [0x0000028E /* ROM85 */], 0x3FFF
  5156. 000037F2  6206                     bhi        +0x8 /* 000037FA */
  5157. 000037F4  137C 0001 0009           move.b     [A1 + 0x9], 0x1
  5158. label000037FA:
  5159. 000037FA  1038 021E                move.b     D0, [0x0000021E /* KbdType */]
  5160. 000037FE  41FA FF5B                lea.l      A0, [PC - 0xA5 /* 0000375B, value 0x303C00 '0<\0', cstring "" */]
  5161. 00003802  323C 0004                move.w     D1, 0x4
  5162. label00003806:
  5163. 00003806  B020                     cmp.b      D0, -[A0]
  5164. 00003808  57C9 FFFC                dbeq       D1, -0x6 /* 00003806 */
  5165. 0000380C  5241                     addq.w     D1, 1
  5166. 0000380E  3341 000A                move.w     [A1 + 0xA], D1
  5167. 00003812  4A38 0291                tst.b      [0x00000291 /* PortBUse */]
  5168. 00003816  6B18                     bmi        +0x1A /* 00003830 */
  5169. 00003818  1238 01FB                move.b     D1, [0x000001FB /* SPConfig */]
  5170. 0000381C  0201 000F                andi.b     D1, 0xF
  5171. 00003820  0C01 0001                cmpi.b     D1, 0x1
  5172. 00003824  660A                     bne        +0xC /* 00003830 */
  5173. 00003826  2078 02DC                movea.l    A0, [0x000002DC /* ABusDCE */]
  5174. 0000382A  1368 0007 000D           move.b     [A1 + 0xD], [A0 + 0x7]
  5175. label00003830:
  5176. 00003830  3378 0210 000E           move.w     [A1 + 0xE], [0x00000210 /* BootDrive */]
  5177. 00003836  4A78 03F6                tst.w      [0x000003F6 /* FSFCBLen */]
  5178. 0000383A  6D44                     blt        +0x46 /* 00003880 */
  5179. 0000383C  4269 000E                clr.w      [A1 + 0xE]
  5180. 00003840  323C 003C                move.w     D1, 0x3C /* '<' */
  5181. label00003844:
  5182. 00003844  4267                     clr.w      -[A7]
  5183. 00003846  51C9 FFFC                dbf        D1, -0x6 /* 00003844 */
  5184. 0000384A  204F                     movea.l    A0, A7
  5185. 0000384C  3178 0A58 0018           move.w     [A0 + 0x18], [0x00000A58 /* SysMap */]
  5186. 00003852  7008                     moveq.l    D0, 0x08
  5187. 00003854  A260                     syscall    FSDispatch/HFSDispatch, flags=2
  5188. 00003856  6624                     bne        +0x26 /* 0000387C */
  5189. 00003858  3168 0034 0016           move.w     [A0 + 0x16], [A0 + 0x34]
  5190. 0000385E  A207                     syscall    GetVolInfo/PBHGetVInfo/HGetVInfo, flags=2
  5191. 00003860  661A                     bne        +0x1C /* 0000387C */
  5192. 00003862  2168 005A 0030           move.l     [A0 + 0x30], [A0 + 0x5A]
  5193. 00003868  217C 4552 494B 001C      move.l     [A0 + 0x1C], 0x4552494B /* 'ERIK' */
  5194. 00003870  7001                     moveq.l    D0, 0x01
  5195. 00003872  A260                     syscall    FSDispatch/HFSDispatch, flags=2
  5196. 00003874  6606                     bne        +0x8 /* 0000387C */
  5197. 00003876  3368 0016 000E           move.w     [A1 + 0xE], [A0 + 0x16]
  5198. label0000387C:
  5199. 0000387C  4FEF 007A                lea.l      A7, [A7 + 0x7A]
  5200. label00003880:
  5201. 00003880  2049                     movea.l    A0, A1
  5202. 00003882  225F                     movea.l    A1, [A7]+
  5203. 00003884  5C4F                     addq.w     A7, 6
  5204. 00003886  3EBC EA84                move.w     [A7], 0xEA84
  5205. 0000388A  4ED1                     jmp        [A1]
  5206. fn0000388C:
  5207. 0000388C  4E56 0000                link       A6, 0
  5208. 00003890  203C 0000 A89F           move.l     D0, 0xA89F
  5209. 00003896  A746                     syscall    GetToolBoxTrapAddress/GetToolTrapAddress, flags=7
  5210. 00003898  2F08                     move.l     -[A7], A0
  5211. 0000389A  203C 0000 A0AD           move.l     D0, 0xA0AD
  5212. 000038A0  A346                     syscall    GetOSTrapAddress, flags=3
  5213. 000038A2  B1DF                     cmpa.l     A0, [A7]+
  5214. 000038A4  670E                     beq        +0x10 /* 000038B4 */
  5215. 000038A6  202E 000C                move.l     D0, [A6 + 0xC]
  5216. 000038AA  A1AD                     syscall    Gestalt, flags=1
  5217. 000038AC  226E 0008                movea.l    A1, [A6 + 0x8]
  5218. 000038B0  2288                     move.l     [A1], A0
  5219. 000038B2  6026                     bra        +0x28 /* 000038DA */
  5220. label000038B4:
  5221. 000038B4  41FA 0036                lea.l      A0, [PC + 0x36 /* 000038EC, value 0x76657273 'vers', cstring "vers" */]
  5222. 000038B8  303C EA51                move.w     D0, 0xEA51
  5223. 000038BC  222E 000C                move.l     D1, [A6 + 0xC]
  5224. label000038C0:
  5225. 000038C0  B298                     cmp.l      D1, [A0]+
  5226. 000038C2  6706                     beq        +0x8 /* 000038CA */
  5227. 000038C4  4A98                     tst.l      [A0]+
  5228. 000038C6  6712                     beq        +0x14 /* 000038DA */
  5229. 000038C8  60F6                     bra        -0x8 /* 000038C0 */
  5230. label000038CA:
  5231. 000038CA  43FA 0020                lea.l      A1, [PC + 0x20 /* 000038EC, value 0x76657273 'vers', cstring "vers" */]
  5232. 000038CE  D3D0                     add.l      A1, [A0]
  5233. 000038D0  4ED1                     jmp        [A1]
  5234. label000038D2:
  5235. 000038D2  226E 0008                movea.l    A1, [A6 + 0x8]
  5236. 000038D6  2280                     move.l     [A1], D0
  5237. 000038D8  4240                     clr.w      D0
  5238. label000038DA:
  5239. 000038DA  3D40 0010                move.w     [A6 + 0x10], D0
  5240. 000038DE  4E5E                     unlink     A6
  5241. 000038E0  205F                     movea.l    A0, [A7]+
  5242. 000038E2  508F                     addq.l     A7, 8
  5243. 000038E4  4ED0                     jmp        [A0]
  5244. label000038E6:
  5245. 000038E6  303C EA52                move.w     D0, 0xEA52
  5246. 000038EA  60EE                     bra        -0x10 /* 000038DA */
  5247. 000038EC  7665                     moveq.l    D3, 0x65
  5248. 000038EE  7273                     moveq.l    D1, 0x73
  5249. 000038F0  0000 0060                ori.b      D0, 0x60 /* '`' */
  5250. 000038F4  6D61                     blt        +0x63 /* 00003957 */
  5251. 000038F6  6368                     bls        +0x6A /* 00003960 */
  5252. 000038F8  0000 0064                ori.b      D0, 0x64 /* 'd' */
  5253. 000038FC  7379                     moveq.l    D1, 0x79
  5254. 000038FE  7376                     moveq.l    D1, 0x76
  5255. 00003900  0000 0088                ori.b      D0, 0x88
  5256. 00003904  7072                     moveq.l    D0, 0x72
  5257. 00003906  6F63                     ble        +0x65 /* 0000396B */
  5258. 00003908  0000 0092                ori.b      D0, 0x92
  5259. 0000390C  6670                     bne        +0x72 /* 0000397E */
  5260. 0000390E  7520                     moveq.l    D2, 0x20
  5261. 00003910  0000 009E                ori.b      D0, 0x9E
  5262. 00003914  7164                     moveq.l    D0, 0x64
  5263. 00003916  2020                     move.l     D0, -[A0]
  5264. 00003918  0000 00E8                ori.b      D0, 0xE8
  5265. 0000391C  6B62                     bmi        +0x64 /* 00003980 */
  5266. 0000391E  6420                     bcc        +0x22 /* 00003940 */
  5267. 00003920  0000 011A                ori.b      D0, 0x1A
  5268. 00003924  6174                     bsr        +0x76 /* 0000399A */
  5269. 00003926  6C6B                     bge        +0x6D /* 00003993 */
  5270. 00003928  0000 0142                ori.b      D0, 0x42 /* 'B' */
  5271. 0000392C  6D6D                     blt        +0x6F /* 0000399B */
  5272. 0000392E  7520                     moveq.l    D2, 0x20
  5273. 00003930  0000 0164                ori.b      D0, 0x64 /* 'd' */
  5274. 00003934  7261                     moveq.l    D1, 0x61
  5275. 00003936  6D20                     blt        +0x22 /* 00003958 */
  5276. 00003938  0000 0188                ori.b      D0, 0x88
  5277. 0000393C  6C72                     bge        +0x74 /* 000039B0 */
  5278. 0000393E  616D                     bsr        +0x6F /* 000039AD */
  5279. label00003940:
  5280. 00003940  0000 0188                ori.b      D0, 0x88
  5281. 00003944  0000 0000                ori.b      D0, 0x0
  5282. 00003948  0000 0000                ori.b      D0, 0x0
  5283. 0000394C  7001                     moveq.l    D0, 0x01
  5284. 0000394E  6082                     bra        -0x7C /* 000038D2 */
  5285. 00003950  2278 02AE                movea.l    A1, [0x000002AE /* ROMBase */]
  5286. 00003954  7004                     moveq.l    D0, 0x04
  5287. 00003956  0C69 0075 0008           cmpi.w     [A1 + 0x8], 0x75 /* 'u' */
  5288. // begin alternate branch 00003958-00003960
  5289. label00003958:
  5290. 00003958  0075 0008 6712 0C69      ori.w      [[A5 + D6 * 8] + 0xC69], 0x8
  5291. // end alternate branch 00003958-00003960
  5292. label00003958: // (misaligned)
  5293. 0000395C  6712                     beq        +0x14 /* 00003970 */
  5294. 0000395E  0C69 0276 0008           cmpi.w     [A1 + 0x8], 0x276
  5295. // begin alternate branch 00003960-00003966
  5296. label00003960:
  5297. 00003960  0276 0008 6604           andi.w     [A6 + D6.w * 8 + 0x4], 0x8
  5298. // end alternate branch 00003960-00003966
  5299. label00003960: // (misaligned)
  5300. 00003964  6604                     bne        +0x6 /* 0000396A */
  5301. 00003966  5240                     addq.w     D0, 1
  5302. 00003968  6006                     bra        +0x8 /* 00003970 */
  5303. label0000396A:
  5304. 0000396A  1038 0CB3                move.b     D0, [0x00000CB3 /* MMUFluff/MachineType */]
  5305. 0000396E  5C80                     addq.l     D0, 6
  5306. label00003970:
  5307. 00003970  6000 FF60                bra        -0x9E /* 000038D2 */
  5308. 00003974  7000                     moveq.l    D0, 0x00
  5309. 00003976  3038 015A                move.w     D0, [0x0000015A /* SysVersion */]
  5310. 0000397A  6000 FF56                bra        -0xA8 /* 000038D2 */
  5311. label0000397E:
  5312. 0000397E  7000                     moveq.l    D0, 0x00
  5313. label00003980:
  5314. 00003980  1038 012F                move.b     D0, [0x0000012F /* CPUFlag */]
  5315. 00003984  5240                     addq.w     D0, 1
  5316. 00003986  6000 FF4A                bra        -0xB4 /* 000038D2 */
  5317. 0000398A  0C38 0004 012F           cmpi.b     [0x0000012F /* CPUFlag */], 0x4
  5318. 00003990  6738                     beq        +0x3A /* 000039CA */
  5319. 00003992  0838 0004 0B22           btst.b     [0x00000B22 /* HWCfgFlags */], 0x4
  5320. 00003998  6734                     beq        +0x36 /* 000039CE */
  5321. fn0000399A:
  5322. 0000399A  204F                     movea.l    A0, A7
  5323. 0000399C  F280 0000                fnop
  5324. 000039A0  F327                     .extension 0x327 <<F/4-5/1>> // unimplemented
  5325. 000039A2  3017                     move.w     D0, [A7]
  5326. 000039A4  2E48                     movea.l    A7, A0
  5327. 000039A6  0C40 1F18                cmpi.w     D0, 0x1F18
  5328. 000039AA  6716                     beq        +0x18 /* 000039C2 */
  5329. 000039AC  0C40 3F18                cmpi.w     D0, 0x3F18
  5330. label000039B0:
  5331. 000039B0  6710                     beq        +0x12 /* 000039C2 */
  5332. 000039B2  0C40 3F38                cmpi.w     D0, 0x3F38 /* '?8' */
  5333. 000039B6  670E                     beq        +0x10 /* 000039C6 */
  5334. 000039B8  0C40 1F38                cmpi.w     D0, 0x1F38
  5335. 000039BC  6708                     beq        +0xA /* 000039C6 */
  5336. 000039BE  7000                     moveq.l    D0, 0x00
  5337. 000039C0  600E                     bra        +0x10 /* 000039D0 */
  5338. label000039C2:
  5339. 000039C2  7001                     moveq.l    D0, 0x01
  5340. 000039C4  600A                     bra        +0xC /* 000039D0 */
  5341. label000039C6:
  5342. 000039C6  7002                     moveq.l    D0, 0x02
  5343. 000039C8  6006                     bra        +0x8 /* 000039D0 */
  5344. label000039CA:
  5345. 000039CA  7003                     moveq.l    D0, 0x03
  5346. 000039CC  6002                     bra        +0x4 /* 000039D0 */
  5347. label000039CE:
  5348. 000039CE  7000                     moveq.l    D0, 0x00
  5349. label000039D0:
  5350. 000039D0  6000 FF00                bra        -0xFE /* 000038D2 */
  5351. 000039D4  0C78 3FFF 028E           cmpi.w     [0x0000028E /* ROM85 */], 0x3FFF
  5352. 000039DA  6E1C                     bgt        +0x1E /* 000039F8 */
  5353. 000039DC  303C A89F                move.w     D0, 0xA89F
  5354. 000039E0  A746                     syscall    GetToolBoxTrapAddress/GetToolTrapAddress, flags=7
  5355. 000039E2  2408                     move.l     D2, A0
  5356. 000039E4  203C 0000 AB03           move.l     D0, 0xAB03
  5357. 000039EA  A746                     syscall    GetToolBoxTrapAddress/GetToolTrapAddress, flags=7
  5358. 000039EC  203C 0000 0100           move.l     D0, 0x100
  5359. 000039F2  B488                     cmp.l      D2, A0
  5360. 000039F4  6606                     bne        +0x8 /* 000039FC */
  5361. 000039F6  600A                     bra        +0xC /* 00003A02 */
  5362. label000039F8:
  5363. 000039F8  7000                     moveq.l    D0, 0x00
  5364. 000039FA  6006                     bra        +0x8 /* 00003A02 */
  5365. label000039FC:
  5366. 000039FC  203C 0000 0200           move.l     D0, 0x200
  5367. label00003A02:
  5368. 00003A02  6000 FECE                bra        -0x130 /* 000038D2 */
  5369. 00003A06  1038 021E                move.b     D0, [0x0000021E /* KbdType */]
  5370. 00003A0A  41FA 0016                lea.l      A0, [PC + 0x16 /* 00003A22, value 0x3130B02 */]
  5371. 00003A0E  2248                     movea.l    A1, A0
  5372. label00003A10:
  5373. 00003A10  1218                     move.b     D1, [A0]+
  5374. 00003A12  6700 FED2                beq        -0x12C /* 000038E6 */
  5375. 00003A16  B200                     cmp.b      D1, D0
  5376. 00003A18  66F6                     bne        -0x8 /* 00003A10 */
  5377. 00003A1A  91C9                     sub.l      A0, A1
  5378. 00003A1C  2008                     move.l     D0, A0
  5379. 00003A1E  6000 FEB2                bra        -0x14C /* 000038D2 */
  5380. 00003A22  0313                     btst       [A3], D1
  5381. 00003A24  0B02                     btst       D2, D5
  5382. 00003A26  0106                     btst       D6, D0
  5383. 00003A28  0704                     btst       D4, D3
  5384. 00003A2A  0508                     btst       A0, D2
  5385. 00003A2C  0900                     btst       D0, D4
  5386. 00003A2E  7000                     moveq.l    D0, 0x00
  5387. 00003A30  4A38 0291                tst.b      [0x00000291 /* PortBUse */]
  5388. 00003A34  6B16                     bmi        +0x18 /* 00003A4C */
  5389. 00003A36  1238 01FB                move.b     D1, [0x000001FB /* SPConfig */]
  5390. 00003A3A  0201 000F                andi.b     D1, 0xF
  5391. 00003A3E  0C01 0001                cmpi.b     D1, 0x1
  5392. 00003A42  6608                     bne        +0xA /* 00003A4C */
  5393. 00003A44  2078 02DC                movea.l    A0, [0x000002DC /* ABusDCE */]
  5394. 00003A48  1028 0007                move.b     D0, [A0 + 0x7]
  5395. label00003A4C:
  5396. 00003A4C  6000 FE84                bra        -0x17A /* 000038D2 */
  5397. 00003A50  0C38 0002 012F           cmpi.b     [0x0000012F /* CPUFlag */], 0x2
  5398. 00003A56  6D16                     blt        +0x18 /* 00003A6E */
  5399. 00003A58  7000                     moveq.l    D0, 0x00
  5400. 00003A5A  1038 0CB1                move.b     D0, [0x00000CB1 /* MMUType */]
  5401. 00003A5E  0C00 0001                cmpi.b     D0, 0x1
  5402. 00003A62  670C                     beq        +0xE /* 00003A70 */
  5403. 00003A64  0C00 0003                cmpi.b     D0, 0x3
  5404. 00003A68  6D04                     blt        +0x6 /* 00003A6E */
  5405. 00003A6A  5340                     subq.w     D0, 1
  5406. 00003A6C  6002                     bra        +0x4 /* 00003A70 */
  5407. label00003A6E:
  5408. 00003A6E  7000                     moveq.l    D0, 0x00
  5409. label00003A70:
  5410. 00003A70  6000 FE60                bra        -0x19E /* 000038D2 */
  5411. 00003A74  303C A89F                move.w     D0, 0xA89F
  5412. 00003A78  A746                     syscall    GetToolBoxTrapAddress/GetToolTrapAddress, flags=7
  5413. 00003A7A  2408                     move.l     D2, A0
  5414. 00003A7C  203C 0000 A88F           move.l     D0, 0xA88F
  5415. 00003A82  A746                     syscall    GetToolBoxTrapAddress/GetToolTrapAddress, flags=7
  5416. 00003A84  2038 0108                move.l     D0, [0x00000108 /* MemTop */]
  5417. 00003A88  B488                     cmp.l      D2, A0
  5418. 00003A8A  670A                     beq        +0xC /* 00003A96 */
  5419. 00003A8C  598F                     subq.l     A7, 4
  5420. 00003A8E  3F3C 0016                move.w     -[A7], 0x16
  5421. 00003A92  A88F                     syscall    OSDispatch
  5422. 00003A94  201F                     move.l     D0, [A7]+
  5423. label00003A96:
  5424. 00003A96  6000 FE3A                bra        -0x1C4 /* 000038D2 */
  5425. fn00003A9A:
  5426. 00003A9A  225F                     movea.l    A1, [A7]+
  5427. 00003A9C  205F                     movea.l    A0, [A7]+
  5428. 00003A9E  A025                     syscall    GetHandleSize
  5429. 00003AA0  2E80                     move.l     [A7], D0
  5430. 00003AA2  6A02                     bpl        +0x4 /* 00003AA6 */
  5431. 00003AA4  4297                     clr.l      [A7]
  5432. label00003AA6:
  5433. 00003AA6  4ED1                     jmp        [A1]
  5434. fn00003AA8:
  5435. 00003AA8  225F                     movea.l    A1, [A7]+
  5436. 00003AAA  121F                     move.b     D1, [A7]+
  5437. 00003AAC  301F                     move.w     D0, [A7]+
  5438. 00003AAE  4A01                     tst.b      D1
  5439. 00003AB0  6704                     beq        +0x6 /* 00003AB6 */
  5440. 00003AB2  A746                     syscall    GetToolBoxTrapAddress/GetToolTrapAddress, flags=7
  5441. 00003AB4  6002                     bra        +0x4 /* 00003AB8 */
  5442. label00003AB6:
  5443. 00003AB6  A346                     syscall    GetOSTrapAddress, flags=3
  5444. label00003AB8:
  5445. 00003AB8  2E88                     move.l     [A7], A0
  5446. 00003ABA  4ED1                     jmp        [A1]
  5447. fn00003ABC:
  5448. 00003ABC  225F                     movea.l    A1, [A7]+
  5449. 00003ABE  121F                     move.b     D1, [A7]+
  5450. 00003AC0  205F                     movea.l    A0, [A7]+
  5451. 00003AC2  7000                     moveq.l    D0, 0x00
  5452. 00003AC4  1018                     move.b     D0, [A0]+
  5453. 00003AC6  2F09                     move.l     -[A7], A1
  5454. 00003AC8  4A01                     tst.b      D1
  5455. 00003ACA  6704                     beq        +0x6 /* 00003AD0 */
  5456. 00003ACC  A054                     syscall    UprString/UprText
  5457. 00003ACE  6002                     bra        +0x4 /* 00003AD2 */
  5458. label00003AD0:
  5459. 00003AD0  A254                     syscall    UprString/UprText, flags=2
  5460. label00003AD2:
  5461. 00003AD2  4E75                     rts
  5462. export_29:
  5463. 00003AD4  4E56 FFCE                link       A6, -0x0032
  5464. 00003AD8  204F                     movea.l    A0, A7
  5465. 00003ADA  216E 000E 0012           move.l     [A0 + 0x12], [A6 + 0xE]
  5466. 00003AE0  316E 000C 0016           move.w     [A0 + 0x16], [A6 + 0xC]
  5467. 00003AE6  4228 001A                clr.b      [A0 + 0x1A]
  5468. 00003AEA  4228 001B                clr.b      [A0 + 0x1B]
  5469. 00003AEE  42A8 001C                clr.l      [A0 + 0x1C]
  5470. 00003AF2  701A                     moveq.l    D0, 0x1A
  5471. 00003AF4  A060                     syscall    FSDispatch/HFSDispatch
  5472. 00003AF6  0C40 FFCE                cmpi.w     D0, 0xFFCE
  5473. 00003AFA  6602                     bne        +0x4 /* 00003AFE */
  5474. 00003AFC  A000                     syscall    Open/PBHOpen/HOpen
  5475. label00003AFE:
  5476. 00003AFE  226E 0008                movea.l    A1, [A6 + 0x8]
  5477. 00003B02  32A8 0018                move.w     [A1], [A0 + 0x18]
  5478. 00003B06  3D40 0012                move.w     [A6 + 0x12], D0
  5479. 00003B0A  4E5E                     unlink     A6
  5480. 00003B0C  205F                     movea.l    A0, [A7]+
  5481. 00003B0E  4FEF 000A                lea.l      A7, [A7 + 0xA]
  5482. 00003B12  4ED0                     jmp        [A0]
  5483. export_30:
  5484. 00003B14  4E56 FFCE                link       A6, -0x0032
  5485. 00003B18  204F                     movea.l    A0, A7
  5486. 00003B1A  316E 0008 0018           move.w     [A0 + 0x18], [A6 + 0x8]
  5487. 00003B20  A001                     syscall    Close
  5488. 00003B22  3D40 000A                move.w     [A6 + 0xA], D0
  5489. 00003B26  4E5E                     unlink     A6
  5490. 00003B28  205F                     movea.l    A0, [A7]+
  5491. 00003B2A  548F                     addq.l     A7, 2
  5492. 00003B2C  4ED0                     jmp        [A0]
  5493. export_31:
  5494. 00003B2E  51C1                     sf         D1
  5495. 00003B30  6002                     bra        +0x4 /* 00003B34 */
  5496. 00003B32  50C1                     st         D1
  5497. label00003B34:
  5498. 00003B34  4E56 FFCE                link       A6, -0x0032
  5499. 00003B38  204F                     movea.l    A0, A7
  5500. 00003B3A  216E 0008 0020           move.l     [A0 + 0x20], [A6 + 0x8]
  5501. 00003B40  316E 0010 0018           move.w     [A0 + 0x18], [A6 + 0x10]
  5502. 00003B46  226E 000C                movea.l    A1, [A6 + 0xC]
  5503. 00003B4A  2151 0024                move.l     [A0 + 0x24], [A1]
  5504. 00003B4E  4268 002C                clr.w      [A0 + 0x2C]
  5505. 00003B52  42A8 002E                clr.l      [A0 + 0x2E]
  5506. 00003B56  4A01                     tst.b      D1
  5507. 00003B58  6604                     bne        +0x6 /* 00003B5E */
  5508. 00003B5A  A002                     syscall    Read
  5509. 00003B5C  6002                     bra        +0x4 /* 00003B60 */
  5510. label00003B5E:
  5511. 00003B5E  A003                     syscall    Write
  5512. label00003B60:
  5513. 00003B60  3D40 0012                move.w     [A6 + 0x12], D0
  5514. 00003B64  226E 000C                movea.l    A1, [A6 + 0xC]
  5515. 00003B68  22A8 0028                move.l     [A1], [A0 + 0x28]
  5516. 00003B6C  4E5E                     unlink     A6
  5517. 00003B6E  225F                     movea.l    A1, [A7]+
  5518. 00003B70  4FEF 000A                lea.l      A7, [A7 + 0xA]
  5519. 00003B74  4ED1                     jmp        [A1]
  5520. fn00003B76:
  5521. 00003B76  4E56 FFC0                link       A6, -0x0040
  5522. 00003B7A  204F                     movea.l    A0, A7
  5523. 00003B7C  216E 000C 0012           move.l     [A0 + 0x12], [A6 + 0xC]
  5524. 00003B82  A014                     syscall    GetVol/PBHGetVol/HGetVol
  5525. 00003B84  3D40 0010                move.w     [A6 + 0x10], D0
  5526. 00003B88  226E 0008                movea.l    A1, [A6 + 0x8]
  5527. 00003B8C  32A8 0016                move.w     [A1], [A0 + 0x16]
  5528. 00003B90  4E5E                     unlink     A6
  5529. 00003B92  225F                     movea.l    A1, [A7]+
  5530. 00003B94  508F                     addq.l     A7, 8
  5531. 00003B96  4ED1                     jmp        [A1]
  5532. export_32:
  5533. 00003B98  4E56 FFCE                link       A6, -0x0032
  5534. 00003B9C  204F                     movea.l    A0, A7
  5535. 00003B9E  316E 000E 0018           move.w     [A0 + 0x18], [A6 + 0xE]
  5536. 00003BA4  316E 000C 002C           move.w     [A0 + 0x2C], [A6 + 0xC]
  5537. 00003BAA  216E 0008 002E           move.l     [A0 + 0x2E], [A6 + 0x8]
  5538. 00003BB0  A044                     syscall    SetFPos
  5539. 00003BB2  3D40 0010                move.w     [A6 + 0x10], D0
  5540. 00003BB6  4E5E                     unlink     A6
  5541. 00003BB8  225F                     movea.l    A1, [A7]+
  5542. 00003BBA  508F                     addq.l     A7, 8
  5543. 00003BBC  4ED1                     jmp        [A1]
  5544. fn00003BBE:
  5545. 00003BBE  226F 0004                movea.l    A1, [A7 + 0x4]
  5546. 00003BC2  4251                     clr.w      [A1]
  5547. 00003BC4  2078 0AEC                movea.l    A0, [0x00000AEC /* AppParmHandle */]
  5548. 00003BC8  A025                     syscall    GetHandleSize
  5549. 00003BCA  4A80                     tst.l      D0
  5550. 00003BCC  6F0E                     ble        +0x10 /* 00003BDC */
  5551. 00003BCE  2050                     movea.l    A0, [A0]
  5552. 00003BD0  226F 0008                movea.l    A1, [A7 + 0x8]
  5553. 00003BD4  3298                     move.w     [A1], [A0]+
  5554. 00003BD6  226F 0004                movea.l    A1, [A7 + 0x4]
  5555. 00003BDA  3290                     move.w     [A1], [A0]
  5556. label00003BDC:
  5557. 00003BDC  205F                     movea.l    A0, [A7]+
  5558. 00003BDE  504F                     addq.w     A7, 8
  5559. 00003BE0  4ED0                     jmp        [A0]
  5560. fn00003BE2:
  5561. 00003BE2  48E7 0030                movem.l    -[A7], A2,A3
  5562. 00003BE6  226F 000C                movea.l    A1, [A7 + 0xC]
  5563. 00003BEA  42A9 0002                clr.l      [A1 + 0x2]
  5564. 00003BEE  2078 0AEC                movea.l    A0, [0x00000AEC /* AppParmHandle */]
  5565. 00003BF2  A025                     syscall    GetHandleSize
  5566. 00003BF4  4A80                     tst.l      D0
  5567. 00003BF6  6F26                     ble        +0x28 /* 00003C1E */
  5568. 00003BF8  2450                     movea.l    A2, [A0]
  5569. 00003BFA  544A                     addq.w     A2, 2
  5570. 00003BFC  322F 0010                move.w     D1, [A7 + 0x10]
  5571. 00003C00  B25A                     cmp.w      D1, [A2]+
  5572. 00003C02  6E1A                     bgt        +0x1C /* 00003C1E */
  5573. 00003C04  5341                     subq.w     D1, 1
  5574. label00003C06:
  5575. 00003C06  6D16                     blt        +0x18 /* 00003C1E */
  5576. 00003C08  204A                     movea.l    A0, A2
  5577. 00003C0A  7002                     moveq.l    D0, 0x02
  5578. 00003C0C  D028 0008                add.b      D0, [A0 + 0x8]
  5579. 00003C10  0240 FFFE                andi.w     D0, 0xFFFE
  5580. 00003C14  5040                     addq.w     D0, 8
  5581. 00003C16  D4C0                     add.w      A2, D0
  5582. 00003C18  A02E                     syscall    BlockMove/BlockMoveData
  5583. 00003C1A  5341                     subq.w     D1, 1
  5584. 00003C1C  60E8                     bra        -0x16 /* 00003C06 */
  5585. label00003C1E:
  5586. 00003C1E  4CDF 0C00                movem.l    A2,A3, [A7]+
  5587. 00003C22  205F                     movea.l    A0, [A7]+
  5588. 00003C24  5C4F                     addq.w     A7, 6
  5589. 00003C26  4ED0                     jmp        [A0]
  5590. fn00003C28:
  5591. 00003C28  2078 0AEC                movea.l    A0, [0x00000AEC /* AppParmHandle */]
  5592. 00003C2C  A025                     syscall    GetHandleSize
  5593. 00003C2E  4A80                     tst.l      D0
  5594. 00003C30  6F28                     ble        +0x2A /* 00003C5A */
  5595. 00003C32  2050                     movea.l    A0, [A0]
  5596. 00003C34  5448                     addq.w     A0, 2
  5597. 00003C36  322F 0004                move.w     D1, [A7 + 0x4]
  5598. 00003C3A  B258                     cmp.w      D1, [A0]+
  5599. 00003C3C  6E1C                     bgt        +0x1E /* 00003C5A */
  5600. 00003C3E  5341                     subq.w     D1, 1
  5601. label00003C40:
  5602. 00003C40  6D18                     blt        +0x1A /* 00003C5A */
  5603. 00003C42  6712                     beq        +0x14 /* 00003C56 */
  5604. 00003C44  7002                     moveq.l    D0, 0x02
  5605. 00003C46  D028 0008                add.b      D0, [A0 + 0x8]
  5606. 00003C4A  0240 FFFE                andi.w     D0, 0xFFFE
  5607. 00003C4E  5040                     addq.w     D0, 8
  5608. 00003C50  D0C0                     add.w      A0, D0
  5609. 00003C52  5341                     subq.w     D1, 1
  5610. 00003C54  60EA                     bra        -0x14 /* 00003C40 */
  5611. label00003C56:
  5612. 00003C56  42A8 0002                clr.l      [A0 + 0x2]
  5613. label00003C5A:
  5614. 00003C5A  205F                     movea.l    A0, [A7]+
  5615. 00003C5C  544F                     addq.w     A7, 2
  5616. 00003C5E  4ED0                     jmp        [A0]
  5617. export_33:
  5618. fn00003C60:
  5619. 00003C60  206F 0004                movea.l    A0, [A7 + 0x4]
  5620. 00003C64  202F 0008                move.l     D0, [A7 + 0x8]
  5621. 00003C68  4267                     clr.w      -[A7]
  5622. 00003C6A  A9EE                     syscall    Pack7/DecStr68K
  5623. 00003C6C  205F                     movea.l    A0, [A7]+
  5624. 00003C6E  504F                     addq.w     A7, 8
  5625. 00003C70  4ED0                     jmp        [A0]
  5626. fn00003C72:
  5627. 00003C72  225F                     movea.l    A1, [A7]+
  5628. 00003C74  201F                     move.l     D0, [A7]+
  5629. 00003C76  0838 0006 028E           btst.b     [0x0000028E /* ROM85 */], 0x6
  5630. 00003C7C  6606                     bne        +0x8 /* 00003C84 */
  5631. 00003C7E  A055                     syscall    StripAddress
  5632. 00003C80  2E80                     move.l     [A7], D0
  5633. 00003C82  4ED1                     jmp        [A1]
  5634. label00003C84:
  5635. 00003C84  C0B8 031A                and.l      D0, [0x0000031A /* MaskBC/MaskHandle/MaskPtr/Lo3Bytes */]
  5636. 00003C88  2E80                     move.l     [A7], D0
  5637. 00003C8A  4ED1                     jmp        [A1]
  5638. fn00003C8C:
  5639. 00003C8C  48E7 0108                movem.l    -[A7], D7,A4
  5640. 00003C90  70FF                     moveq.l    D0, 0xFFFFFFFF
  5641. 00003C92  B0AD FE78                cmp.l      D0, [A5 - 0x188]
  5642. 00003C96  663E                     bne        +0x40 /* 00003CD6 */
  5643. 00003C98  42AD FE78                clr.l      [A5 - 0x188]
  5644. 00003C9C  4267                     clr.w      -[A7]
  5645. 00003C9E  2F3C 612F 7578           move.l     -[A7], 0x612F7578 /* 'a/ux' */
  5646. 00003CA4  486D FE78                pea.l      [A5 - 0x188]
  5647. 00003CA8  4EBA FBE2                jsr        [PC - 0x41E /* 0000388C */]
  5648. 00003CAC  3E1F                     move.w     D7, [A7]+
  5649. 00003CAE  0C47 EA52                cmpi.w     D7, 0xEA52
  5650. 00003CB2  6706                     beq        +0x8 /* 00003CBA */
  5651. 00003CB4  0C47 EA51                cmpi.w     D7, 0xEA51
  5652. 00003CB8  6604                     bne        +0x6 /* 00003CBE */
  5653. label00003CBA:
  5654. 00003CBA  387C 0B22                movea.w    A4, 0xB22
  5655. label00003CBE:
  5656. 00003CBE  0814 0001                btst.b     [A4], 0x1
  5657. 00003CC2  6708                     beq        +0xA /* 00003CCC */
  5658. 00003CC4  2B7C 0000 0100 FE78      move.l     [A5 - 0x188], 0x100
  5659. label00003CCC:
  5660. 00003CCC  202D FE78                move.l     D0, [A5 - 0x188]
  5661. 00003CD0  E080                     asr        D0, 8
  5662. 00003CD2  2B40 FE78                move.l     [A5 - 0x188], D0
  5663. label00003CD6:
  5664. 00003CD6  302D FE7A                move.w     D0, [A5 - 0x186]
  5665. 00003CDA  4CDF 1080                movem.l    D7,A4, [A7]+
  5666. 00003CDE  4E75                     rts
  5667. fn00003CE0:
  5668. 00003CE0  4E56 0000                link       A6, 0
  5669. 00003CE4  48E7 0300                movem.l    -[A7], D6,D7
  5670. 00003CE8  1C2E 0008                move.b     D6, [A6 + 0x8]
  5671. 00003CEC  302D FE9E                move.w     D0, [A5 - 0x162]
  5672. 00003CF0  E048                     lsr        D0.w, 8
  5673. 00003CF2  BD00                     xor.b      D0, D6
  5674. 00003CF4  1E00                     move.b     D7, D0
  5675. 00003CF6  7000                     moveq.l    D0, 0x00
  5676. 00003CF8  1006                     move.b     D0, D6
  5677. 00003CFA  D06D FE9E                add.w      D0, [A5 - 0x162]
  5678. 00003CFE  C0FC CE6D                mulu.w     D0, 0xCE6D
  5679. 00003D02  0640 58BF                addi.w     D0, 0x58BF
  5680. 00003D06  3B40 FE9E                move.w     [A5 - 0x162], D0
  5681. 00003D0A  1007                     move.b     D0, D7
  5682. 00003D0C  4CDF 00C0                movem.l    D6,D7, [A7]+
  5683. 00003D10  4E5E                     unlink     A6
  5684. 00003D12  4E75                     rts
  5685. fn00003D14:
  5686. 00003D14  4E56 0000                link       A6, 0
  5687. 00003D18  48E7 0138                movem.l    -[A7], D7,A2,A3,A4
  5688. 00003D1C  246E 0008                movea.l    A2, [A6 + 0x8]
  5689. 00003D20  200A                     move.l     D0, A2
  5690. 00003D22  6730                     beq        +0x32 /* 00003D54 */
  5691. 00003D24  3B7C DCE5 FE9E           move.w     [A5 - 0x162], 0xDCE5
  5692. 00003D2A  204A                     movea.l    A0, A2
  5693. 00003D2C  A029                     syscall    HLock
  5694. 00003D2E  2852                     movea.l    A4, [A2]
  5695. 00003D30  42A7                     clr.l      -[A7]
  5696. 00003D32  2F0A                     move.l     -[A7], A2
  5697. 00003D34  4EBA FD64                jsr        [PC - 0x29C /* 00003A9A */]
  5698. 00003D38  264C                     movea.l    A3, A4
  5699. 00003D3A  D7DF                     add.l      A3, [A7]+
  5700. 00003D3C  5E8C                     addq.l     A4, 7
  5701. 00003D3E  600C                     bra        +0xE /* 00003D4C */
  5702. label00003D40:
  5703. 00003D40  1F14                     move.b     -[A7], [A4]
  5704. 00003D42  4EBA FF9C                jsr        [PC - 0x64 /* 00003CE0 */]
  5705. 00003D46  1880                     move.b     [A4], D0
  5706. 00003D48  528C                     addq.l     A4, 1
  5707. 00003D4A  548F                     addq.l     A7, 2
  5708. label00003D4C:
  5709. 00003D4C  B7CC                     cmpa.l     A3, A4
  5710. 00003D4E  62F0                     bhi        -0xE /* 00003D40 */
  5711. 00003D50  204A                     movea.l    A0, A2
  5712. 00003D52  A02A                     syscall    HUnlock
  5713. label00003D54:
  5714. 00003D54  4CDF 1C80                movem.l    D7,A2,A3,A4, [A7]+
  5715. 00003D58  4E5E                     unlink     A6
  5716. 00003D5A  4E75                     rts
  5717. 00003D5C  4E56 FFFE                link       A6, -0x0002
  5718. 00003D60  2F0C                     move.l     -[A7], A4
  5719. 00003D62  42A7                     clr.l      -[A7]
  5720. 00003D64  2F3C 534F 4E47           move.l     -[A7], 0x534F4E47 /* 'SONG' */
  5721. 00003D6A  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  5722. 00003D6E  A9A0                     syscall    GetResource
  5723. 00003D70  285F                     movea.l    A4, [A7]+
  5724. 00003D72  200C                     move.l     D0, A4
  5725. 00003D74  675A                     beq        +0x5C /* 00003DD0 */
  5726. 00003D76  2054                     movea.l    A0, [A4]
  5727. 00003D78  3D50 0008                move.w     [A6 + 0x8], [A0]
  5728. 00003D7C  4A2D FE93                tst.b      [A5 - 0x16D]
  5729. 00003D80  6706                     beq        +0x8 /* 00003D88 */
  5730. 00003D82  204C                     movea.l    A0, A4
  5731. 00003D84  A029                     syscall    HLock
  5732. 00003D86  6004                     bra        +0x6 /* 00003D8C */
  5733. label00003D88:
  5734. 00003D88  204C                     movea.l    A0, A4
  5735. 00003D8A  A02A                     syscall    HUnlock
  5736. label00003D8C:
  5737. 00003D8C  4A2D FE92                tst.b      [A5 - 0x16E]
  5738. 00003D90  6706                     beq        +0x8 /* 00003D98 */
  5739. 00003D92  204C                     movea.l    A0, A4
  5740. 00003D94  A049                     syscall    HPurge
  5741. 00003D96  6004                     bra        +0x6 /* 00003D9C */
  5742. label00003D98:
  5743. 00003D98  204C                     movea.l    A0, A4
  5744. 00003D9A  A04A                     syscall    HNoPurge
  5745. label00003D9C:
  5746. 00003D9C  42A7                     clr.l      -[A7]
  5747. 00003D9E  2F3C 4D49 4449           move.l     -[A7], 0x4D494449 /* 'MIDI' */
  5748. 00003DA4  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  5749. 00003DA8  A9A0                     syscall    GetResource
  5750. 00003DAA  285F                     movea.l    A4, [A7]+
  5751. 00003DAC  200C                     move.l     D0, A4
  5752. 00003DAE  6720                     beq        +0x22 /* 00003DD0 */
  5753. 00003DB0  4A2D FE93                tst.b      [A5 - 0x16D]
  5754. 00003DB4  6706                     beq        +0x8 /* 00003DBC */
  5755. 00003DB6  204C                     movea.l    A0, A4
  5756. 00003DB8  A029                     syscall    HLock
  5757. 00003DBA  6004                     bra        +0x6 /* 00003DC0 */
  5758. label00003DBC:
  5759. 00003DBC  204C                     movea.l    A0, A4
  5760. 00003DBE  A02A                     syscall    HUnlock
  5761. label00003DC0:
  5762. 00003DC0  4A2D FE92                tst.b      [A5 - 0x16E]
  5763. 00003DC4  6706                     beq        +0x8 /* 00003DCC */
  5764. 00003DC6  204C                     movea.l    A0, A4
  5765. 00003DC8  A049                     syscall    HPurge
  5766. 00003DCA  6004                     bra        +0x6 /* 00003DD0 */
  5767. label00003DCC:
  5768. 00003DCC  204C                     movea.l    A0, A4
  5769. 00003DCE  A04A                     syscall    HNoPurge
  5770. label00003DD0:
  5771. 00003DD0  285F                     movea.l    A4, [A7]+
  5772. 00003DD2  4E5E                     unlink     A6
  5773. 00003DD4  4E75                     rts
  5774. fn00003DD6:
  5775. 00003DD6  4E56 FFFC                link       A6, -0x0004
  5776. 00003DDA  2F0B                     move.l     -[A7], A3
  5777. 00003DDC  206E 000A                movea.l    A0, [A6 + 0xA]
  5778. 00003DE0  4250                     clr.w      [A0]
  5779. 00003DE2  42A7                     clr.l      -[A7]
  5780. 00003DE4  2F3C 4A6E 7468           move.l     -[A7], 0x4A6E7468 /* 'Jnth' */
  5781. 00003DEA  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  5782. 00003DEE  A9A0                     syscall    GetResource
  5783. 00003DF0  265F                     movea.l    A3, [A7]+
  5784. 00003DF2  200B                     move.l     D0, A3
  5785. 00003DF4  6706                     beq        +0x8 /* 00003DFC */
  5786. 00003DF6  2F0B                     move.l     -[A7], A3
  5787. 00003DF8  A992                     syscall    DetachResource
  5788. 00003DFA  603E                     bra        +0x40 /* 00003E3A */
  5789. label00003DFC:
  5790. 00003DFC  42A7                     clr.l      -[A7]
  5791. 00003DFE  2F3C 4D44 5256           move.l     -[A7], 0x4D445256 /* 'MDRV' */
  5792. 00003E04  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  5793. 00003E08  A9A0                     syscall    GetResource
  5794. 00003E0A  265F                     movea.l    A3, [A7]+
  5795. 00003E0C  200B                     move.l     D0, A3
  5796. 00003E0E  6722                     beq        +0x24 /* 00003E32 */
  5797. 00003E10  2F0B                     move.l     -[A7], A3
  5798. 00003E12  A992                     syscall    DetachResource
  5799. 00003E14  2F0B                     move.l     -[A7], A3
  5800. 00003E16  4EBA FEFC                jsr        [PC - 0x104 /* 00003D14 */]
  5801. 00003E1A  2E8B                     move.l     [A7], A3
  5802. 00003E1C  4EBA 0A64                jsr        [PC + 0xA64 /* 00004882 */]
  5803. 00003E20  2640                     movea.l    A3, D0
  5804. 00003E22  200B                     move.l     D0, A3
  5805. 00003E24  588F                     addq.l     A7, 4
  5806. 00003E26  6612                     bne        +0x14 /* 00003E3A */
  5807. 00003E28  206E 000A                movea.l    A0, [A6 + 0xA]
  5808. 00003E2C  30BC FF94                move.w     [A0], 0xFF94
  5809. 00003E30  6008                     bra        +0xA /* 00003E3A */
  5810. label00003E32:
  5811. 00003E32  206E 000A                movea.l    A0, [A6 + 0xA]
  5812. 00003E36  30BC FF34                move.w     [A0], 0xFF34
  5813. label00003E3A:
  5814. 00003E3A  200B                     move.l     D0, A3
  5815. 00003E3C  265F                     movea.l    A3, [A7]+
  5816. 00003E3E  4E5E                     unlink     A6
  5817. 00003E40  4E75                     rts
  5818. fn00003E42:
  5819. 00003E42  4E56 FEE2                link       A6, -0x011E
  5820. 00003E46  48E7 0F08                movem.l    -[A7], D4,D5,D6,D7,A4
  5821. 00003E4A  2E2E 000A                move.l     D7, [A6 + 0xA]
  5822. 00003E4E  7C00                     moveq.l    D6, 0x00
  5823. 00003E50  302E 0008                move.w     D0, [A6 + 0x8]
  5824. 00003E54  6700 00F2                beq        +0xF4 /* 00003F48 */
  5825. 00003E58  6B00 0422                bmi        +0x424 /* 0000427C */
  5826. 00003E5C  0440 000C                subi.w     D0, 0xC
  5827. 00003E60  6700 020A                beq        +0x20C /* 0000406C */
  5828. 00003E64  6A38                     bpl        +0x3A /* 00003E9E */
  5829. 00003E66  5C40                     addq.w     D0, 6
  5830. 00003E68  6772                     beq        +0x74 /* 00003EDC */
  5831. 00003E6A  6A1A                     bpl        +0x1C /* 00003E86 */
  5832. 00003E6C  5640                     addq.w     D0, 3
  5833. 00003E6E  6700 01B0                beq        +0x1B2 /* 00004020 */
  5834. 00003E72  6A0A                     bpl        +0xC /* 00003E7E */
  5835. 00003E74  5240                     addq.w     D0, 1
  5836. 00003E76  6A00 0172                bpl        +0x174 /* 00003FEA */
  5837. 00003E7A  6000 00C8                bra        +0xCA /* 00003F44 */
  5838. label00003E7E:
  5839. 00003E7E  5540                     subq.w     D0, 2
  5840. 00003E80  6A62                     bpl        +0x64 /* 00003EE4 */
  5841. 00003E82  6000 022C                bra        +0x22E /* 000040B0 */
  5842. label00003E86:
  5843. 00003E86  5740                     subq.w     D0, 3
  5844. 00003E88  6700 00A0                beq        +0xA2 /* 00003F2A */
  5845. 00003E8C  6A08                     bpl        +0xA /* 00003E96 */
  5846. 00003E8E  5240                     addq.w     D0, 1
  5847. 00003E90  6A5A                     bpl        +0x5C /* 00003EEC */
  5848. 00003E92  6000 03E8                bra        +0x3EA /* 0000427C */
  5849. label00003E96:
  5850. 00003E96  5540                     subq.w     D0, 2
  5851. 00003E98  6A00 03E2                bpl        +0x3E4 /* 0000427C */
  5852. 00003E9C  6068                     bra        +0x6A /* 00003F06 */
  5853. label00003E9E:
  5854. 00003E9E  0440 0059                subi.w     D0, 0x59 /* 'Y' */
  5855. 00003EA2  6700 0334                beq        +0x336 /* 000041D8 */
  5856. 00003EA6  6A20                     bpl        +0x22 /* 00003EC8 */
  5857. 00003EA8  0440 FFAA                subi.w     D0, 0xFFAA
  5858. 00003EAC  6700 0352                beq        +0x354 /* 00004200 */
  5859. 00003EB0  6A0A                     bpl        +0xC /* 00003EBC */
  5860. 00003EB2  5240                     addq.w     D0, 1
  5861. 00003EB4  6A00 0296                bpl        +0x298 /* 0000414C */
  5862. 00003EB8  6000 024E                bra        +0x250 /* 00004108 */
  5863. label00003EBC:
  5864. 00003EBC  0440 0055                subi.w     D0, 0x55 /* 'U' */
  5865. 00003EC0  6A00 02EC                bpl        +0x2EE /* 000041AE */
  5866. 00003EC4  6000 03B6                bra        +0x3B8 /* 0000427C */
  5867. label00003EC8:
  5868. 00003EC8  5740                     subq.w     D0, 3
  5869. 00003ECA  6700 02B8                beq        +0x2BA /* 00004184 */
  5870. 00003ECE  6A00 03AC                bpl        +0x3AE /* 0000427C */
  5871. 00003ED2  5240                     addq.w     D0, 1
  5872. 00003ED4  6A00 020C                bpl        +0x20E /* 000040E2 */
  5873. 00003ED8  6000 027C                bra        +0x27E /* 00004156 */
  5874. label00003EDC:
  5875. 00003EDC  1B47 FE93                move.b     [A5 - 0x16D], D7
  5876. 00003EE0  6000 039A                bra        +0x39C /* 0000427C */
  5877. label00003EE4:
  5878. 00003EE4  1B47 FE92                move.b     [A5 - 0x16E], D7
  5879. 00003EE8  6000 0392                bra        +0x394 /* 0000427C */
  5880. label00003EEC:
  5881. 00003EEC  0C6D 0006 FDEC           cmpi.w     [A5 - 0x214], 0x6
  5882. 00003EF2  6600 0388                bne        +0x38A /* 0000427C */
  5883. 00003EF6  42A7                     clr.l      -[A7]
  5884. 00003EF8  42A7                     clr.l      -[A7]
  5885. 00003EFA  206D FE82                movea.l    A0, [A5 - 0x17E]
  5886. 00003EFE  4E90                     jsr        [A0]
  5887. 00003F00  508F                     addq.l     A7, 8
  5888. 00003F02  6000 0378                bra        +0x37A /* 0000427C */
  5889. label00003F06:
  5890. 00003F06  0C6D 0006 FDEC           cmpi.w     [A5 - 0x214], 0x6
  5891. 00003F0C  6600 036E                bne        +0x370 /* 0000427C */
  5892. 00003F10  4878 0006                push.l     0x6
  5893. 00003F14  206D FE82                movea.l    A0, [A5 - 0x17E]
  5894. 00003F18  4E90                     jsr        [A0]
  5895. 00003F1A  7008                     moveq.l    D0, 0x08
  5896. 00003F1C  2E80                     move.l     [A7], D0
  5897. 00003F1E  206D FE82                movea.l    A0, [A5 - 0x17E]
  5898. 00003F22  4E90                     jsr        [A0]
  5899. 00003F24  588F                     addq.l     A7, 4
  5900. 00003F26  6000 0354                bra        +0x356 /* 0000427C */
  5901. label00003F2A:
  5902. 00003F2A  0C6D 0006 FDEC           cmpi.w     [A5 - 0x214], 0x6
  5903. 00003F30  6600 034A                bne        +0x34C /* 0000427C */
  5904. 00003F34  4878 0006                push.l     0x6
  5905. 00003F38  206D FE82                movea.l    A0, [A5 - 0x17E]
  5906. 00003F3C  4E90                     jsr        [A0]
  5907. 00003F3E  588F                     addq.l     A7, 4
  5908. 00003F40  6000 033A                bra        +0x33C /* 0000427C */
  5909. label00003F44:
  5910. 00003F44  7801                     moveq.l    D4, 0x01
  5911. 00003F46  6002                     bra        +0x4 /* 00003F4A */
  5912. label00003F48:
  5913. 00003F48  7800                     moveq.l    D4, 0x00
  5914. label00003F4A:
  5915. 00003F4A  4A2D FE88                tst.b      [A5 - 0x178]
  5916. 00003F4E  6600 032C                bne        +0x32E /* 0000427C */
  5917. 00003F52  0C6D 0006 FDEC           cmpi.w     [A5 - 0x214], 0x6
  5918. 00003F58  6700 0322                beq        +0x324 /* 0000427C */
  5919. 00003F5C  42A7                     clr.l      -[A7]
  5920. 00003F5E  2F3C 534F 4E47           move.l     -[A7], 0x534F4E47 /* 'SONG' */
  5921. 00003F64  3F07                     move.w     -[A7], D7
  5922. 00003F66  A9A0                     syscall    GetResource
  5923. 00003F68  285F                     movea.l    A4, [A7]+
  5924. 00003F6A  200C                     move.l     D0, A4
  5925. 00003F6C  6772                     beq        +0x74 /* 00003FE0 */
  5926. 00003F6E  2054                     movea.l    A0, [A4]
  5927. 00003F70  3A10                     move.w     D5, [A0]
  5928. 00003F72  42A7                     clr.l      -[A7]
  5929. 00003F74  2F3C 4D49 4449           move.l     -[A7], 0x4D494449 /* 'MIDI' */
  5930. 00003F7A  3F05                     move.w     -[A7], D5
  5931. 00003F7C  A9A0                     syscall    GetResource
  5932. 00003F7E  285F                     movea.l    A4, [A7]+
  5933. 00003F80  200C                     move.l     D0, A4
  5934. 00003F82  660E                     bne        +0x10 /* 00003F92 */
  5935. 00003F84  42A7                     clr.l      -[A7]
  5936. 00003F86  2F3C 4D69 6469           move.l     -[A7], 0x4D696469 /* 'Midi' */
  5937. 00003F8C  3F05                     move.w     -[A7], D5
  5938. 00003F8E  A9A0                     syscall    GetResource
  5939. 00003F90  285F                     movea.l    A4, [A7]+
  5940. label00003F92:
  5941. 00003F92  200C                     move.l     D0, A4
  5942. 00003F94  6740                     beq        +0x42 /* 00003FD6 */
  5943. 00003F96  0C6D FFFF FE86           cmpi.w     [A5 - 0x17A], 0xFFFF
  5944. 00003F9C  670C                     beq        +0xE /* 00003FAA */
  5945. 00003F9E  42A7                     clr.l      -[A7]
  5946. 00003FA0  3F3C 0002                move.w     -[A7], 0x2
  5947. 00003FA4  4EBA FE9C                jsr        [PC - 0x164 /* 00003E42 */]
  5948. 00003FA8  5C8F                     addq.l     A7, 6
  5949. label00003FAA:
  5950. 00003FAA  7000                     moveq.l    D0, 0x00
  5951. 00003FAC  1004                     move.b     D0, D4
  5952. 00003FAE  2F00                     move.l     -[A7], D0
  5953. 00003FB0  4878 000D                push.l     0xD /* '\r' */
  5954. 00003FB4  206D FE82                movea.l    A0, [A5 - 0x17E]
  5955. 00003FB8  4E90                     jsr        [A0]
  5956. 00003FBA  2E87                     move.l     [A7], D7
  5957. 00003FBC  42A7                     clr.l      -[A7]
  5958. 00003FBE  206D FE82                movea.l    A0, [A5 - 0x17E]
  5959. 00003FC2  4E90                     jsr        [A0]
  5960. 00003FC4  3B47 FE86                move.w     [A5 - 0x17A], D7
  5961. 00003FC8  2B78 016A FE8A           move.l     [A5 - 0x176], [0x0000016A /* Ticks */]
  5962. 00003FCE  4FEF 000C                lea.l      A7, [A7 + 0xC]
  5963. 00003FD2  6000 02A8                bra        +0x2AA /* 0000427C */
  5964. label00003FD6:
  5965. 00003FD6  2C3C FFFF FAEC           move.l     D6, 0xFFFFFAEC
  5966. 00003FDC  6000 029E                bra        +0x2A0 /* 0000427C */
  5967. label00003FE0:
  5968. 00003FE0  2C3C FFFF FF40           move.l     D6, 0xFFFFFF40
  5969. 00003FE6  6000 0294                bra        +0x296 /* 0000427C */
  5970. label00003FEA:
  5971. 00003FEA  4A2D FE88                tst.b      [A5 - 0x178]
  5972. 00003FEE  6600 028C                bne        +0x28E /* 0000427C */
  5973. 00003FF2  0C6D 0006 FDEC           cmpi.w     [A5 - 0x214], 0x6
  5974. 00003FF8  6700 0282                beq        +0x284 /* 0000427C */
  5975. 00003FFC  0C6D FFFF FE86           cmpi.w     [A5 - 0x17A], 0xFFFF
  5976. 00004002  6700 0278                beq        +0x27A /* 0000427C */
  5977. 00004006  4878 0005                push.l     0x5
  5978. 0000400A  206D FE82                movea.l    A0, [A5 - 0x17E]
  5979. 0000400E  4E90                     jsr        [A0]
  5980. 00004010  3B7C FFFF FE86           move.w     [A5 - 0x17A], 0xFFFF
  5981. 00004016  42AD FE8A                clr.l      [A5 - 0x176]
  5982. 0000401A  588F                     addq.l     A7, 4
  5983. 0000401C  6000 025E                bra        +0x260 /* 0000427C */
  5984. label00004020:
  5985. 00004020  0C6D FFFF FE86           cmpi.w     [A5 - 0x17A], 0xFFFF
  5986. 00004026  6704                     beq        +0x6 /* 0000402C */
  5987. 00004028  7000                     moveq.l    D0, 0x00
  5988. 0000402A  6002                     bra        +0x4 /* 0000402E */
  5989. label0000402C:
  5990. 0000402C  7001                     moveq.l    D0, 0x01
  5991. label0000402E:
  5992. 0000402E  48C0                     ext.l      D0
  5993. 00004030  2C00                     move.l     D6, D0
  5994. 00004032  4A2D FE88                tst.b      [A5 - 0x178]
  5995. 00004036  6600 0244                bne        +0x246 /* 0000427C */
  5996. 0000403A  0C6D 0006 FDEC           cmpi.w     [A5 - 0x214], 0x6
  5997. 00004040  6700 023A                beq        +0x23C /* 0000427C */
  5998. 00004044  0C6D FFFF FE86           cmpi.w     [A5 - 0x17A], 0xFFFF
  5999. 0000404A  6700 0230                beq        +0x232 /* 0000427C */
  6000. 0000404E  4878 0004                push.l     0x4
  6001. 00004052  206D FE82                movea.l    A0, [A5 - 0x17E]
  6002. 00004056  4E90                     jsr        [A0]
  6003. 00004058  4A40                     tst.w      D0
  6004. 0000405A  588F                     addq.l     A7, 4
  6005. 0000405C  6704                     beq        +0x6 /* 00004062 */
  6006. 0000405E  7000                     moveq.l    D0, 0x00
  6007. 00004060  6002                     bra        +0x4 /* 00004064 */
  6008. label00004062:
  6009. 00004062  7001                     moveq.l    D0, 0x01
  6010. label00004064:
  6011. 00004064  48C0                     ext.l      D0
  6012. 00004066  2C00                     move.l     D6, D0
  6013. 00004068  6000 0212                bra        +0x214 /* 0000427C */
  6014. label0000406C:
  6015. 0000406C  7C00                     moveq.l    D6, 0x00
  6016. 0000406E  4267                     clr.w      -[A7]
  6017. 00004070  3F3C 0001                move.w     -[A7], 0x1
  6018. 00004074  486E FEE2                pea.l      [A6 - 0x11E]
  6019. 00004078  4EBA F6A8                jsr        [PC - 0x958 /* 00003722 */]
  6020. 0000407C  4A5F                     tst.w      [A7]+
  6021. 0000407E  6600 01FC                bne        +0x1FE /* 0000427C */
  6022. 00004082  302E FEE8                move.w     D0, [A6 - 0x118]
  6023. 00004086  6B10                     bmi        +0x12 /* 00004098 */
  6024. 00004088  5940                     subq.w     D0, 4
  6025. 0000408A  6718                     beq        +0x1A /* 000040A4 */
  6026. 0000408C  6A06                     bpl        +0x8 /* 00004094 */
  6027. 0000408E  5240                     addq.w     D0, 1
  6028. 00004090  6A0C                     bpl        +0xE /* 0000409E */
  6029. 00004092  6004                     bra        +0x6 /* 00004098 */
  6030. label00004094:
  6031. 00004094  5540                     subq.w     D0, 2
  6032. 00004096  6B12                     bmi        +0x14 /* 000040AA */
  6033. label00004098:
  6034. 00004098  7C03                     moveq.l    D6, 0x03
  6035. 0000409A  6000 01E0                bra        +0x1E2 /* 0000427C */
  6036. label0000409E:
  6037. 0000409E  7C06                     moveq.l    D6, 0x06
  6038. 000040A0  6000 01DA                bra        +0x1DC /* 0000427C */
  6039. label000040A4:
  6040. 000040A4  7C08                     moveq.l    D6, 0x08
  6041. 000040A6  6000 01D4                bra        +0x1D6 /* 0000427C */
  6042. label000040AA:
  6043. 000040AA  7C10                     moveq.l    D6, 0x10
  6044. 000040AC  6000 01CE                bra        +0x1D0 /* 0000427C */
  6045. label000040B0:
  6046. 000040B0  7C00                     moveq.l    D6, 0x00
  6047. 000040B2  4A2D FE88                tst.b      [A5 - 0x178]
  6048. 000040B6  6600 01C4                bne        +0x1C6 /* 0000427C */
  6049. 000040BA  0C6D 0006 FDEC           cmpi.w     [A5 - 0x214], 0x6
  6050. 000040C0  6700 01BA                beq        +0x1BC /* 0000427C */
  6051. 000040C4  0C6D FFFF FE86           cmpi.w     [A5 - 0x17A], 0xFFFF
  6052. 000040CA  6700 01B0                beq        +0x1B2 /* 0000427C */
  6053. 000040CE  2C38 016A                move.l     D6, [0x0000016A /* Ticks */]
  6054. 000040D2  9CAD FE8A                sub.l      D6, [A5 - 0x176]
  6055. 000040D6  4A86                     tst.l      D6
  6056. 000040D8  6C00 01A2                bge        +0x1A4 /* 0000427C */
  6057. 000040DC  7C00                     moveq.l    D6, 0x00
  6058. 000040DE  6000 019C                bra        +0x19E /* 0000427C */
  6059. label000040E2:
  6060. 000040E2  4A2D FE88                tst.b      [A5 - 0x178]
  6061. 000040E6  6600 0194                bne        +0x196 /* 0000427C */
  6062. 000040EA  0C6D 0006 FDEC           cmpi.w     [A5 - 0x214], 0x6
  6063. 000040F0  6700 018A                beq        +0x18C /* 0000427C */
  6064. 000040F4  422D FE7C                clr.b      [A5 - 0x184]
  6065. 000040F8  4878 0016                push.l     0x16
  6066. 000040FC  206D FE82                movea.l    A0, [A5 - 0x17E]
  6067. 00004100  4E90                     jsr        [A0]
  6068. 00004102  588F                     addq.l     A7, 4
  6069. 00004104  6000 0176                bra        +0x178 /* 0000427C */
  6070. label00004108:
  6071. 00004108  4A2D FE88                tst.b      [A5 - 0x178]
  6072. 0000410C  6600 016E                bne        +0x170 /* 0000427C */
  6073. 00004110  0C6D 0006 FDEC           cmpi.w     [A5 - 0x214], 0x6
  6074. 00004116  6700 0164                beq        +0x166 /* 0000427C */
  6075. 0000411A  1B7C 0001 FE7C           move.b     [A5 - 0x184], 0x1
  6076. 00004120  422D FE94                clr.b      [A5 - 0x16C]
  6077. 00004124  3B7C 0100 FE96           move.w     [A5 - 0x16A], 0x100
  6078. 0000412A  203C 0000 0400           move.l     D0, 0x400
  6079. 00004130  81C7                     divs.w     D0, D7
  6080. 00004132  3B40 FE98                move.w     [A5 - 0x168], D0
  6081. 00004136  4878 0004                push.l     0x4
  6082. 0000413A  2F07                     move.l     -[A7], D7
  6083. 0000413C  4EAD 005A                jsr        [A5 + 0x5A /* export_7 */]
  6084. 00004140  3B40 FE9A                move.w     [A5 - 0x166], D0
  6085. 00004144  3B40 FE9C                move.w     [A5 - 0x164], D0
  6086. 00004148  6000 0132                bra        +0x134 /* 0000427C */
  6087. label0000414C:
  6088. 0000414C  3C2D FE96                move.w     D6, [A5 - 0x16A]
  6089. 00004150  48C6                     ext.l      D6
  6090. 00004152  6000 0128                bra        +0x12A /* 0000427C */
  6091. label00004156:
  6092. 00004156  4A87                     tst.l      D7
  6093. 00004158  6700 0122                beq        +0x124 /* 0000427C */
  6094. 0000415C  4A2D FE88                tst.b      [A5 - 0x178]
  6095. 00004160  6600 011A                bne        +0x11C /* 0000427C */
  6096. 00004164  0C6D 0006 FDEC           cmpi.w     [A5 - 0x214], 0x6
  6097. 0000416A  6700 0110                beq        +0x112 /* 0000427C */
  6098. 0000416E  2F07                     move.l     -[A7], D7
  6099. 00004170  4878 0014                push.l     0x14
  6100. 00004174  206D FE82                movea.l    A0, [A5 - 0x17E]
  6101. 00004178  4E90                     jsr        [A0]
  6102. 0000417A  48C0                     ext.l      D0
  6103. 0000417C  2C00                     move.l     D6, D0
  6104. 0000417E  508F                     addq.l     A7, 8
  6105. 00004180  6000 00FA                bra        +0xFC /* 0000427C */
  6106. label00004184:
  6107. 00004184  4A87                     tst.l      D7
  6108. 00004186  6700 00F4                beq        +0xF6 /* 0000427C */
  6109. 0000418A  4A2D FE88                tst.b      [A5 - 0x178]
  6110. 0000418E  6600 00EC                bne        +0xEE /* 0000427C */
  6111. 00004192  0C6D 0006 FDEC           cmpi.w     [A5 - 0x214], 0x6
  6112. 00004198  6700 00E2                beq        +0xE4 /* 0000427C */
  6113. 0000419C  2F07                     move.l     -[A7], D7
  6114. 0000419E  4878 0017                push.l     0x17
  6115. 000041A2  206D FE82                movea.l    A0, [A5 - 0x17E]
  6116. 000041A6  4E90                     jsr        [A0]
  6117. 000041A8  508F                     addq.l     A7, 8
  6118. 000041AA  6000 00D0                bra        +0xD2 /* 0000427C */
  6119. label000041AE:
  6120. 000041AE  4A87                     tst.l      D7
  6121. 000041B0  6700 00CA                beq        +0xCC /* 0000427C */
  6122. 000041B4  4A2D FE88                tst.b      [A5 - 0x178]
  6123. 000041B8  6600 00C2                bne        +0xC4 /* 0000427C */
  6124. 000041BC  0C6D 0006 FDEC           cmpi.w     [A5 - 0x214], 0x6
  6125. 000041C2  6700 00B8                beq        +0xBA /* 0000427C */
  6126. 000041C6  2F07                     move.l     -[A7], D7
  6127. 000041C8  4878 0011                push.l     0x11
  6128. 000041CC  206D FE82                movea.l    A0, [A5 - 0x17E]
  6129. 000041D0  4E90                     jsr        [A0]
  6130. 000041D2  508F                     addq.l     A7, 8
  6131. 000041D4  6000 00A6                bra        +0xA8 /* 0000427C */
  6132. label000041D8:
  6133. 000041D8  4A87                     tst.l      D7
  6134. 000041DA  6700 00A0                beq        +0xA2 /* 0000427C */
  6135. 000041DE  4A2D FE88                tst.b      [A5 - 0x178]
  6136. 000041E2  6600 0098                bne        +0x9A /* 0000427C */
  6137. 000041E6  0C6D 0006 FDEC           cmpi.w     [A5 - 0x214], 0x6
  6138. 000041EC  6700 008E                beq        +0x90 /* 0000427C */
  6139. 000041F0  2F07                     move.l     -[A7], D7
  6140. 000041F2  4878 0012                push.l     0x12
  6141. 000041F6  206D FE82                movea.l    A0, [A5 - 0x17E]
  6142. 000041FA  4E90                     jsr        [A0]
  6143. 000041FC  508F                     addq.l     A7, 8
  6144. 000041FE  607C                     bra        +0x7E /* 0000427C */
  6145. label00004200:
  6146. 00004200  4A2D FE88                tst.b      [A5 - 0x178]
  6147. 00004204  6676                     bne        +0x78 /* 0000427C */
  6148. 00004206  0C6D 0006 FDEC           cmpi.w     [A5 - 0x214], 0x6
  6149. 0000420C  676E                     beq        +0x70 /* 0000427C */
  6150. 0000420E  2007                     move.l     D0, D7
  6151. 00004210  7206                     moveq.l    D1, 0x06
  6152. 00004212  B081                     cmp.l      D0, D1
  6153. 00004214  620C                     bhi        +0xE /* 00004222 */
  6154. 00004216  43FA 006E                lea.l      A1, [PC + 0x6E /* 00004286, value 0xFF9CFFA0 */]
  6155. 0000421A  D040                     add.w      D0, D0
  6156. 0000421C  D2F1 0000                add.w      A1, [A1 + D0.w]
  6157. 00004220  4ED1                     jmp        [A1]
  6158. label00004222:
  6159. 00004222  7CCE                     moveq.l    D6, 0xFFFFFFCE
  6160. 00004224  6056                     bra        +0x58 /* 0000427C */
  6161. 00004226  42A7                     clr.l      -[A7]
  6162. 00004228  4878 0018                push.l     0x18
  6163. 0000422C  206D FE82                movea.l    A0, [A5 - 0x17E]
  6164. 00004230  4E90                     jsr        [A0]
  6165. 00004232  508F                     addq.l     A7, 8
  6166. 00004234  6046                     bra        +0x48 /* 0000427C */
  6167. 00004236  4878 010B                push.l     0x10B
  6168. 0000423A  4878 0018                push.l     0x18
  6169. 0000423E  206D FE82                movea.l    A0, [A5 - 0x17E]
  6170. 00004242  4E90                     jsr        [A0]
  6171. 00004244  508F                     addq.l     A7, 8
  6172. 00004246  6034                     bra        +0x36 /* 0000427C */
  6173. 00004248  4878 0116                push.l     0x116
  6174. 0000424C  4878 0018                push.l     0x18
  6175. 00004250  206D FE82                movea.l    A0, [A5 - 0x17E]
  6176. 00004254  4E90                     jsr        [A0]
  6177. 00004256  508F                     addq.l     A7, 8
  6178. 00004258  6022                     bra        +0x24 /* 0000427C */
  6179. 0000425A  4878 0016                push.l     0x16
  6180. 0000425E  4878 0018                push.l     0x18
  6181. 00004262  206D FE82                movea.l    A0, [A5 - 0x17E]
  6182. 00004266  4E90                     jsr        [A0]
  6183. 00004268  508F                     addq.l     A7, 8
  6184. 0000426A  6010                     bra        +0x12 /* 0000427C */
  6185. 0000426C  4878 000B                push.l     0xB
  6186. 00004270  4878 0018                push.l     0x18
  6187. 00004274  206D FE82                movea.l    A0, [A5 - 0x17E]
  6188. 00004278  4E90                     jsr        [A0]
  6189. 0000427A  508F                     addq.l     A7, 8
  6190. label0000427C:
  6191. 0000427C  2006                     move.l     D0, D6
  6192. 0000427E  4CDF 10F0                movem.l    D4,D5,D6,D7,A4, [A7]+
  6193. 00004282  4E5E                     unlink     A6
  6194. 00004284  4E75                     rts
  6195. 00004286  FF9C                     .invalid   <<F/6/7>>
  6196. 00004288  FFA0                     .invalid   <<F/6/7>>
  6197. 0000428A  FFE6                     .invalid   <<F/7/7>>
  6198. 0000428C  FFD4                     .invalid   <<F/7/7>>
  6199. 0000428E  FFB0                     .invalid   <<F/6/7>>
  6200. 00004290  FFC2                     .invalid   <<F/7/7>>
  6201. 00004292  FF9C                     .invalid   <<F/6/7>>
  6202. 00004294  4E56 FFFA                link       A6, -0x0006
  6203. 00004298  3D6E 0008 FFFA           move.w     [A6 - 0x6], [A6 + 0x8]
  6204. 0000429E  3D6E 000A FFFC           move.w     [A6 - 0x4], [A6 + 0xA]
  6205. 000042A4  3D6E 000C FFFE           move.w     [A6 - 0x2], [A6 + 0xC]
  6206. 000042AA  486E FFFA                pea.l      [A6 - 0x6]
  6207. 000042AE  4878 0015                push.l     0x15
  6208. 000042B2  206D FE82                movea.l    A0, [A5 - 0x17E]
  6209. 000042B6  4E90                     jsr        [A0]
  6210. 000042B8  7000                     moveq.l    D0, 0x00
  6211. 000042BA  4E5E                     unlink     A6
  6212. 000042BC  4E75                     rts
  6213. fn000042BE:
  6214. 000042BE  4E56 FFE8                link       A6, -0x0018
  6215. 000042C2  48E7 0700                movem.l    -[A7], D5,D6,D7
  6216. 000042C6  4267                     clr.w      -[A7]
  6217. 000042C8  3F3C 0001                move.w     -[A7], 0x1
  6218. 000042CC  486E FFEE                pea.l      [A6 - 0x12]
  6219. 000042D0  4EBA F450                jsr        [PC - 0xBB0 /* 00003722 */]
  6220. 000042D4  3E1F                     move.w     D7, [A7]+
  6221. 000042D6  4EBA F9B4                jsr        [PC - 0x64C /* 00003C8C */]
  6222. 000042DA  3C00                     move.w     D6, D0
  6223. 000042DC  4A47                     tst.w      D7
  6224. 000042DE  670E                     beq        +0x10 /* 000042EE */
  6225. 000042E0  0C6E 0600 FFF2           cmpi.w     [A6 - 0xE], 0x600
  6226. 000042E6  6C06                     bge        +0x8 /* 000042EE */
  6227. 000042E8  4A46                     tst.w      D6
  6228. 000042EA  6602                     bne        +0x4 /* 000042EE */
  6229. 000042EC  7E66                     moveq.l    D7, 0x66
  6230. label000042EE:
  6231. 000042EE  422D FE7C                clr.b      [A5 - 0x184]
  6232. 000042F2  4A47                     tst.w      D7
  6233. 000042F4  6600 0102                bne        +0x104 /* 000043F8 */
  6234. 000042F8  7C0B                     moveq.l    D6, 0x0B
  6235. 000042FA  302E 000E                move.w     D0, [A6 + 0xE]
  6236. 000042FE  0C40 0006                cmpi.w     D0, 0x6
  6237. 00004302  6252                     bhi        +0x54 /* 00004356 */
  6238. 00004304  43FA 00FC                lea.l      A1, [PC + 0xFC /* 00004402, value 0xFF54FF2E */]
  6239. 00004308  D040                     add.w      D0, D0
  6240. 0000430A  D2F1 0000                add.w      A1, [A1 + D0.w]
  6241. 0000430E  4ED1                     jmp        [A1]
  6242. 00004310  7C21                     moveq.l    D6, 0x21
  6243. 00004312  3B7C 0006 FDEC           move.w     [A5 - 0x214], 0x6
  6244. 00004318  7A0B                     moveq.l    D5, 0x0B
  6245. 0000431A  6042                     bra        +0x44 /* 0000435E */
  6246. 0000431C  3B7C 0003 FDEC           move.w     [A5 - 0x214], 0x3
  6247. 00004322  7A16                     moveq.l    D5, 0x16
  6248. 00004324  6038                     bra        +0x3A /* 0000435E */
  6249. 00004326  3B7C 0002 FDEC           move.w     [A5 - 0x214], 0x2
  6250. 0000432C  7A0B                     moveq.l    D5, 0x0B
  6251. 0000432E  602E                     bra        +0x30 /* 0000435E */
  6252. 00004330  3B7C 0001 FDEC           move.w     [A5 - 0x214], 0x1
  6253. 00004336  7A00                     moveq.l    D5, 0x00
  6254. 00004338  6024                     bra        +0x26 /* 0000435E */
  6255. 0000433A  3B7C 0004 FDEC           move.w     [A5 - 0x214], 0x4
  6256. 00004340  2A3C 0000 010B           move.l     D5, 0x10B
  6257. 00004346  6016                     bra        +0x18 /* 0000435E */
  6258. 00004348  3B7C 0005 FDEC           move.w     [A5 - 0x214], 0x5
  6259. 0000434E  2A3C 0000 0116           move.l     D5, 0x116
  6260. 00004354  6008                     bra        +0xA /* 0000435E */
  6261. label00004356:
  6262. 00004356  7CFF                     moveq.l    D6, 0xFFFFFFFF
  6263. 00004358  426D FDEC                clr.w      [A5 - 0x214]
  6264. 0000435C  7AFF                     moveq.l    D5, 0xFFFFFFFF
  6265. label0000435E:
  6266. 0000435E  0C46 FFFF                cmpi.w     D6, 0xFFFF
  6267. 00004362  6606                     bne        +0x8 /* 0000436A */
  6268. 00004364  7ECE                     moveq.l    D7, 0xFFFFFFCE
  6269. 00004366  6000 0090                bra        +0x92 /* 000043F8 */
  6270. label0000436A:
  6271. 0000436A  486E FFFE                pea.l      [A6 - 0x2]
  6272. 0000436E  3F06                     move.w     -[A7], D6
  6273. 00004370  4EBA FA64                jsr        [PC - 0x59C /* 00003DD6 */]
  6274. 00004374  2B40 FE7E                move.l     [A5 - 0x182], D0
  6275. 00004378  3E2E FFFE                move.w     D7, [A6 - 0x2]
  6276. 0000437C  4A80                     tst.l      D0
  6277. 0000437E  5C8F                     addq.l     A7, 6
  6278. 00004380  6776                     beq        +0x78 /* 000043F8 */
  6279. 00004382  206D FE7E                movea.l    A0, [A5 - 0x182]
  6280. 00004386  A064                     syscall    MoveHHi
  6281. 00004388  206D FE7E                movea.l    A0, [A5 - 0x182]
  6282. 0000438C  A04A                     syscall    HNoPurge
  6283. 0000438E  206D FE7E                movea.l    A0, [A5 - 0x182]
  6284. 00004392  A029                     syscall    HLock
  6285. 00004394  206D FE7E                movea.l    A0, [A5 - 0x182]
  6286. 00004398  2B50 FE82                move.l     [A5 - 0x17E], [A0]
  6287. 0000439C  3B7C FFFF FE86           move.w     [A5 - 0x17A], 0xFFFF
  6288. 000043A2  42AD FE8A                clr.l      [A5 - 0x176]
  6289. 000043A6  422D FE88                clr.b      [A5 - 0x178]
  6290. 000043AA  422D FE89                clr.b      [A5 - 0x177]
  6291. 000043AE  3F2E 000C                move.w     -[A7], [A6 + 0xC]
  6292. 000043B2  4EBA 0C34                jsr        [PC + 0xC34 /* 00004FE8 */]
  6293. 000043B6  3E00                     move.w     D7, D0
  6294. 000043B8  4A47                     tst.w      D7
  6295. 000043BA  548F                     addq.l     A7, 2
  6296. 000043BC  663A                     bne        +0x3C /* 000043F8 */
  6297. 000043BE  3D6E 0008 FFE8           move.w     [A6 - 0x18], [A6 + 0x8]
  6298. 000043C4  3D6E 000A FFEA           move.w     [A6 - 0x16], [A6 + 0xA]
  6299. 000043CA  3D6E 000C FFEC           move.w     [A6 - 0x14], [A6 + 0xC]
  6300. 000043D0  486E FFE8                pea.l      [A6 - 0x18]
  6301. 000043D4  4878 0015                push.l     0x15
  6302. 000043D8  206D FE82                movea.l    A0, [A5 - 0x17E]
  6303. 000043DC  4E90                     jsr        [A0]
  6304. 000043DE  2E85                     move.l     [A7], D5
  6305. 000043E0  4878 0018                push.l     0x18
  6306. 000043E4  206D FE82                movea.l    A0, [A5 - 0x17E]
  6307. 000043E8  4E90                     jsr        [A0]
  6308. 000043EA  1B7C 0001 FE92           move.b     [A5 - 0x16E], 0x1
  6309. 000043F0  422D FE93                clr.b      [A5 - 0x16D]
  6310. 000043F4  4FEF 000C                lea.l      A7, [A7 + 0xC]
  6311. label000043F8:
  6312. 000043F8  3007                     move.w     D0, D7
  6313. 000043FA  4CDF 00E0                movem.l    D5,D6,D7, [A7]+
  6314. 000043FE  4E5E                     unlink     A6
  6315. 00004400  4E75                     rts
  6316. 00004402  FF54                     .extension 0xF54 <<F/4-5/7>> // unimplemented
  6317. 00004404  FF2E                     .extension 0xF2E <<F/4-5/7>> // unimplemented
  6318. 00004406  FF24                     .extension 0xF24 <<F/4-5/7>> // unimplemented
  6319. 00004408  FF1A                     .extension 0xF1A <<F/4-5/7>> // unimplemented
  6320. 0000440A  FF38                     .extension 0xF38 <<F/4-5/7>> // unimplemented
  6321. 0000440C  FF46                     .extension 0xF46 <<F/4-5/7>> // unimplemented
  6322. 0000440E  FF0E                     .extension 0xF0E <<F/4-5/7>> // unimplemented
  6323. fn00004410:
  6324. 00004410  4E56 FEF4                link       A6, -0x010C
  6325. 00004414  4AAD FE82                tst.l      [A5 - 0x17E]
  6326. 00004418  673E                     beq        +0x40 /* 00004458 */
  6327. 0000441A  4EBA 0CA2                jsr        [PC + 0xCA2 /* 000050BE */]
  6328. 0000441E  422D FE88                clr.b      [A5 - 0x178]
  6329. 00004422  42A7                     clr.l      -[A7]
  6330. 00004424  3F3C 0002                move.w     -[A7], 0x2
  6331. 00004428  4EBA FA18                jsr        [PC - 0x5E8 /* 00003E42 */]
  6332. 0000442C  7008                     moveq.l    D0, 0x08
  6333. 0000442E  2E80                     move.l     [A7], D0
  6334. 00004430  206D FE82                movea.l    A0, [A5 - 0x17E]
  6335. 00004434  4E90                     jsr        [A0]
  6336. 00004436  206D FE7E                movea.l    A0, [A5 - 0x182]
  6337. 0000443A  A02A                     syscall    HUnlock
  6338. 0000443C  206D FE7E                movea.l    A0, [A5 - 0x182]
  6339. 00004440  A023                     syscall    DisposHandle/DisposeHandle
  6340. 00004442  42AD FE7E                clr.l      [A5 - 0x182]
  6341. 00004446  203C 0080 0000           move.l     D0, 0x800000
  6342. 0000444C  A04D                     syscall    PurgeMem
  6343. 0000444E  203C 0080 0000           move.l     D0, 0x800000
  6344. 00004454  A04C                     syscall    CompactMem
  6345. 00004456  5C8F                     addq.l     A7, 6
  6346. label00004458:
  6347. 00004458  4E5E                     unlink     A6
  6348. 0000445A  4E75                     rts
  6349. fn0000445C:
  6350. 0000445C  4EBA 0CB8                jsr        [PC + 0xCB8 /* 00005116 */]
  6351. 00004460  4A2D FE88                tst.b      [A5 - 0x178]
  6352. 00004464  6620                     bne        +0x22 /* 00004486 */
  6353. 00004466  0C6D 0006 FDEC           cmpi.w     [A5 - 0x214], 0x6
  6354. 0000446C  6718                     beq        +0x1A /* 00004486 */
  6355. 0000446E  4878 000A                push.l     0xA /* '\n' */
  6356. 00004472  206D FE82                movea.l    A0, [A5 - 0x17E]
  6357. 00004476  4E90                     jsr        [A0]
  6358. 00004478  1B7C 0001 FE88           move.b     [A5 - 0x178], 0x1
  6359. 0000447E  2B78 016A FE8E           move.l     [A5 - 0x172], [0x0000016A /* Ticks */]
  6360. 00004484  588F                     addq.l     A7, 4
  6361. label00004486:
  6362. 00004486  4E75                     rts
  6363. fn00004488:
  6364. 00004488  4EBA 0CD8                jsr        [PC + 0xCD8 /* 00005162 */]
  6365. 0000448C  4A2D FE88                tst.b      [A5 - 0x178]
  6366. 00004490  6724                     beq        +0x26 /* 000044B6 */
  6367. 00004492  0C6D 0006 FDEC           cmpi.w     [A5 - 0x214], 0x6
  6368. 00004498  671C                     beq        +0x1E /* 000044B6 */
  6369. 0000449A  4878 000B                push.l     0xB
  6370. 0000449E  206D FE82                movea.l    A0, [A5 - 0x17E]
  6371. 000044A2  4E90                     jsr        [A0]
  6372. 000044A4  422D FE88                clr.b      [A5 - 0x178]
  6373. 000044A8  2038 016A                move.l     D0, [0x0000016A /* Ticks */]
  6374. 000044AC  90AD FE8E                sub.l      D0, [A5 - 0x172]
  6375. 000044B0  D1AD FE8A                add.l      [A5 - 0x176], D0
  6376. 000044B4  588F                     addq.l     A7, 4
  6377. label000044B6:
  6378. 000044B6  4E75                     rts
  6379. fn000044B8:
  6380. 000044B8  4E56 0000                link       A6, 0
  6381. 000044BC  536D FE9C                subq.w     [A5 - 0x164], 1
  6382. 000044C0  4A2D FE94                tst.b      [A5 - 0x16C]
  6383. 000044C4  6660                     bne        +0x62 /* 00004526 */
  6384. 000044C6  4A6D FE9C                tst.w      [A5 - 0x164]
  6385. 000044CA  6C72                     bge        +0x74 /* 0000453E */
  6386. 000044CC  3B6D FE9A FE9C           move.w     [A5 - 0x164], [A5 - 0x166]
  6387. 000044D2  4A6D FE96                tst.w      [A5 - 0x16A]
  6388. 000044D6  6C2C                     bge        +0x2E /* 00004504 */
  6389. 000044D8  1B7C 0001 FE94           move.b     [A5 - 0x16C], 0x1
  6390. 000044DE  42A7                     clr.l      -[A7]
  6391. 000044E0  3F3C 0002                move.w     -[A7], 0x2
  6392. 000044E4  4EBA F95C                jsr        [PC - 0x6A4 /* 00003E42 */]
  6393. 000044E8  7006                     moveq.l    D0, 0x06
  6394. 000044EA  2E80                     move.l     [A7], D0
  6395. 000044EC  206D FE82                movea.l    A0, [A5 - 0x17E]
  6396. 000044F0  4E90                     jsr        [A0]
  6397. 000044F2  4297                     clr.l      [A7]
  6398. 000044F4  4878 0013                push.l     0x13
  6399. 000044F8  206D FE82                movea.l    A0, [A5 - 0x17E]
  6400. 000044FC  4E90                     jsr        [A0]
  6401. 000044FE  4FEF 000A                lea.l      A7, [A7 + 0xA]
  6402. 00004502  603A                     bra        +0x3C /* 0000453E */
  6403. label00004504:
  6404. 00004504  302D FE98                move.w     D0, [A5 - 0x168]
  6405. 00004508  916D FE96                sub.w      [A5 - 0x16A], D0
  6406. 0000450C  4A6D FE96                tst.w      [A5 - 0x16A]
  6407. 00004510  6D2C                     blt        +0x2E /* 0000453E */
  6408. 00004512  306D FE96                movea.w    A0, [A5 - 0x16A]
  6409. 00004516  2F08                     move.l     -[A7], A0
  6410. 00004518  4878 0013                push.l     0x13
  6411. 0000451C  206D FE82                movea.l    A0, [A5 - 0x17E]
  6412. 00004520  4E90                     jsr        [A0]
  6413. 00004522  508F                     addq.l     A7, 8
  6414. 00004524  6018                     bra        +0x1A /* 0000453E */
  6415. label00004526:
  6416. 00004526  422D FE7C                clr.b      [A5 - 0x184]
  6417. 0000452A  4878 0100                push.l     0x100
  6418. 0000452E  4878 0013                push.l     0x13
  6419. 00004532  206D FE82                movea.l    A0, [A5 - 0x17E]
  6420. 00004536  4E90                     jsr        [A0]
  6421. 00004538  4EBA 10F2                jsr        [PC + 0x10F2 /* 0000562C */]
  6422. 0000453C  508F                     addq.l     A7, 8
  6423. label0000453E:
  6424. 0000453E  4E5E                     unlink     A6
  6425. 00004540  4E75                     rts
  6426. fn00004542:
  6427. 00004542  4E56 0000                link       A6, 0
  6428. 00004546  2F2E 0010                move.l     -[A7], [A6 + 0x10]
  6429. 0000454A  2F2E 000C                move.l     -[A7], [A6 + 0xC]
  6430. 0000454E  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  6431. 00004552  4EBA 0126                jsr        [PC + 0x126 /* 0000467A */]
  6432. 00004556  206E 0014                movea.l    A0, [A6 + 0x14]
  6433. 0000455A  2080                     move.l     [A0], D0
  6434. 0000455C  4E5E                     unlink     A6
  6435. 0000455E  4E75                     rts
  6436. fn00004560:
  6437. 00004560  4E56 0000                link       A6, 0
  6438. 00004564  206E 0014                movea.l    A0, [A6 + 0x14]
  6439. 00004568  2F10                     move.l     -[A7], [A0]
  6440. 0000456A  2F2E 0010                move.l     -[A7], [A6 + 0x10]
  6441. 0000456E  2F2E 000C                move.l     -[A7], [A6 + 0xC]
  6442. 00004572  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  6443. 00004576  4EBA 01C4                jsr        [PC + 0x1C4 /* 0000473C */]
  6444. 0000457A  4E5E                     unlink     A6
  6445. 0000457C  4E75                     rts
  6446. 0000457E  4E56 FFF8                link       A6, -0x0008
  6447. 00004582  2F2E 000C                move.l     -[A7], [A6 + 0xC]
  6448. 00004586  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  6449. 0000458A  4EBA 021C                jsr        [PC + 0x21C /* 000047A8 */]
  6450. 0000458E  2EAE 0010                move.l     [A7], [A6 + 0x10]
  6451. 00004592  2F2E 000C                move.l     -[A7], [A6 + 0xC]
  6452. 00004596  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  6453. 0000459A  4EBA 00DE                jsr        [PC + 0xDE /* 0000467A */]
  6454. 0000459E  206E 0014                movea.l    A0, [A6 + 0x14]
  6455. 000045A2  2080                     move.l     [A0], D0
  6456. 000045A4  2EAE 000C                move.l     [A7], [A6 + 0xC]
  6457. 000045A8  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  6458. 000045AC  4EBA 0218                jsr        [PC + 0x218 /* 000047C6 */]
  6459. 000045B0  4E5E                     unlink     A6
  6460. 000045B2  4E75                     rts
  6461. fn000045B4:
  6462. 000045B4  4E56 0000                link       A6, 0
  6463. 000045B8  206E 0014                movea.l    A0, [A6 + 0x14]
  6464. 000045BC  2F10                     move.l     -[A7], [A0]
  6465. 000045BE  2F2E 0010                move.l     -[A7], [A6 + 0x10]
  6466. 000045C2  2F2E 000C                move.l     -[A7], [A6 + 0xC]
  6467. 000045C6  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  6468. 000045CA  4EBA 0170                jsr        [PC + 0x170 /* 0000473C */]
  6469. 000045CE  206E 0014                movea.l    A0, [A6 + 0x14]
  6470. 000045D2  2E90                     move.l     [A7], [A0]
  6471. 000045D4  2F2E 0010                move.l     -[A7], [A6 + 0x10]
  6472. 000045D8  4EBA 01EC                jsr        [PC + 0x1EC /* 000047C6 */]
  6473. 000045DC  4E5E                     unlink     A6
  6474. 000045DE  4E75                     rts
  6475. fn000045E0:
  6476. 000045E0  4E56 0000                link       A6, 0
  6477. 000045E4  48E7 3E30                movem.l    -[A7], D2,D3,D4,D5,D6,A2,A3
  6478. 000045E8  7800                     moveq.l    D4, 0x00
  6479. 000045EA  203C 0000 1000           move.l     D0, 0x1000
  6480. 000045F0  222E 0010                move.l     D1, [A6 + 0x10]
  6481. 000045F4  B280                     cmp.l      D1, D0
  6482. 000045F6  6C04                     bge        +0x6 /* 000045FC */
  6483. 000045F8  2401                     move.l     D2, D1
  6484. 000045FA  6002                     bra        +0x4 /* 000045FE */
  6485. label000045FC:
  6486. 000045FC  2400                     move.l     D2, D0
  6487. label000045FE:
  6488. 000045FE  7612                     moveq.l    D3, 0x12
  6489. 00004600  202E 000C                move.l     D0, [A6 + 0xC]
  6490. 00004604  9081                     sub.l      D0, D1
  6491. 00004606  B082                     cmp.l      D0, D2
  6492. 00004608  6D02                     blt        +0x4 /* 0000460C */
  6493. 0000460A  2002                     move.l     D0, D2
  6494. label0000460C:
  6495. 0000460C  B083                     cmp.l      D0, D3
  6496. 0000460E  6C02                     bge        +0x4 /* 00004612 */
  6497. 00004610  2600                     move.l     D3, D0
  6498. label00004612:
  6499. 00004612  206E 0008                movea.l    A0, [A6 + 0x8]
  6500. 00004616  2648                     movea.l    A3, A0
  6501. 00004618  D7C1                     add.l      A3, D1
  6502. 0000461A  244B                     movea.l    A2, A3
  6503. 0000461C  95C2                     sub.l      A2, D2
  6504. 0000461E  7C00                     moveq.l    D6, 0x00
  6505. 00004620  1C13                     move.b     D6, [A3]
  6506. label00004622:
  6507. 00004622  4A42                     tst.w      D2
  6508. 00004624  6F28                     ble        +0x2A /* 0000464E */
  6509. 00004626  BC1A                     cmp.b      D6, [A2]+
  6510. 00004628  6704                     beq        +0x6 /* 0000462E */
  6511. 0000462A  5342                     subq.w     D2, 1
  6512. 0000462C  60F4                     bra        -0xA /* 00004622 */
  6513. label0000462E:
  6514. 0000462E  7001                     moveq.l    D0, 0x01
  6515. 00004630  43EB 0001                lea.l      A1, [A3 + 0x1]
  6516. label00004634:
  6517. 00004634  B043                     cmp.w      D0, D3
  6518. 00004636  6C08                     bge        +0xA /* 00004640 */
  6519. 00004638  B30A                     cmpm.b     [A1]+, [A2]+
  6520. 0000463A  6604                     bne        +0x6 /* 00004640 */
  6521. 0000463C  5240                     addq.w     D0, 1
  6522. 0000463E  60F4                     bra        -0xA /* 00004634 */
  6523. label00004640:
  6524. 00004640  B044                     cmp.w      D0, D4
  6525. 00004642  6F04                     ble        +0x6 /* 00004648 */
  6526. 00004644  3A02                     move.w     D5, D2
  6527. 00004646  3800                     move.w     D4, D0
  6528. label00004648:
  6529. 00004648  534A                     subq.w     A2, 1
  6530. 0000464A  9440                     sub.w      D2, D0
  6531. 0000464C  60D4                     bra        -0x2A /* 00004622 */
  6532. label0000464E:
  6533. 0000464E  0C44 0003                cmpi.w     D4, 0x3
  6534. 00004652  6D1C                     blt        +0x1E /* 00004670 */
  6535. 00004654  203C 0000 1000           move.l     D0, 0x1000
  6536. 0000465A  9045                     sub.w      D0, D5
  6537. 0000465C  3204                     move.w     D1, D4
  6538. 0000465E  5741                     subq.w     D1, 3
  6539. 00004660  E149                     lsl        D1.w, 8
  6540. 00004662  E949                     lsl        D1.w, 4
  6541. 00004664  8041                     or.w       D0, D1
  6542. 00004666  206E 0014                movea.l    A0, [A6 + 0x14]
  6543. 0000466A  3080                     move.w     [A0], D0
  6544. 0000466C  3004                     move.w     D0, D4
  6545. 0000466E  6002                     bra        +0x4 /* 00004672 */
  6546. label00004670:
  6547. 00004670  7000                     moveq.l    D0, 0x00
  6548. label00004672:
  6549. 00004672  4CDF 0C7C                movem.l    D2,D3,D4,D5,D6,A2,A3, [A7]+
  6550. 00004676  4E5E                     unlink     A6
  6551. 00004678  4E75                     rts
  6552. fn0000467A:
  6553. 0000467A  4E56 FFE8                link       A6, -0x0018
  6554. 0000467E  48E7 1F18                movem.l    -[A7], D3,D4,D5,D6,D7,A3,A4
  6555. 00004682  286E 0008                movea.l    A4, [A6 + 0x8]
  6556. 00004686  7E00                     moveq.l    D7, 0x00
  6557. 00004688  266E 0010                movea.l    A3, [A6 + 0x10]
  6558. 0000468C  7C00                     moveq.l    D6, 0x00
  6559. 0000468E  6000 0090                bra        +0x92 /* 00004720 */
  6560. label00004692:
  6561. 00004692  7A00                     moveq.l    D5, 0x00
  6562. 00004694  7800                     moveq.l    D4, 0x00
  6563. 00004696  7600                     moveq.l    D3, 0x00
  6564. 00004698  605C                     bra        +0x5E /* 000046F6 */
  6565. label0000469A:
  6566. 0000469A  486E FFFE                pea.l      [A6 - 0x2]
  6567. 0000469E  2F07                     move.l     -[A7], D7
  6568. 000046A0  2F2E 000C                move.l     -[A7], [A6 + 0xC]
  6569. 000046A4  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  6570. 000046A8  4EBA FF36                jsr        [PC - 0xCA /* 000045E0 */]
  6571. 000046AC  3D40 FFE8                move.w     [A6 - 0x18], D0
  6572. 000046B0  4A40                     tst.w      D0
  6573. 000046B2  4FEF 0010                lea.l      A7, [A7 + 0x10]
  6574. 000046B6  6724                     beq        +0x26 /* 000046DC */
  6575. 000046B8  302E FFFE                move.w     D0, [A6 - 0x2]
  6576. 000046BC  E040                     asr        D0.w, 8
  6577. 000046BE  3204                     move.w     D1, D4
  6578. 000046C0  5244                     addq.w     D4, 1
  6579. 000046C2  1D80 10EE                move.b     [A6 + D1.w - 0x18], D0
  6580. 000046C6  70FF                     moveq.l    D0, 0xFFFFFFFF
  6581. 000046C8  C02E FFFF                and.b      D0, [A6 - 0x1]
  6582. 000046CC  3204                     move.w     D1, D4
  6583. 000046CE  5244                     addq.w     D4, 1
  6584. 000046D0  1D80 10EE                move.b     [A6 + D1.w - 0x18], D0
  6585. 000046D4  306E FFE8                movea.w    A0, [A6 - 0x18]
  6586. 000046D8  DE88                     add.l      D7, A0
  6587. 000046DA  6012                     bra        +0x14 /* 000046EE */
  6588. label000046DC:
  6589. 000046DC  3004                     move.w     D0, D4
  6590. 000046DE  5244                     addq.w     D4, 1
  6591. 000046E0  1DB4 7800 00EE           move.b     [A6 + D0.w - 0x18], [A4 + D7]
  6592. 000046E6  7001                     moveq.l    D0, 0x01
  6593. 000046E8  E728                     lsl        D0.b, D3
  6594. 000046EA  8A00                     or.b       D5, D0
  6595. 000046EC  5287                     addq.l     D7, 1
  6596. label000046EE:
  6597. 000046EE  BEAE 000C                cmp.l      D7, [A6 + 0xC]
  6598. 000046F2  6C08                     bge        +0xA /* 000046FC */
  6599. 000046F4  5243                     addq.w     D3, 1
  6600. label000046F6:
  6601. 000046F6  0C43 0008                cmpi.w     D3, 0x8
  6602. 000046FA  6D9E                     blt        -0x60 /* 0000469A */
  6603. label000046FC:
  6604. 000046FC  BCAE 000C                cmp.l      D6, [A6 + 0xC]
  6605. 00004700  6C04                     bge        +0x6 /* 00004706 */
  6606. 00004702  1785 6800                move.b     [A3 + D6], D5
  6607. label00004706:
  6608. 00004706  5286                     addq.l     D6, 1
  6609. 00004708  7600                     moveq.l    D3, 0x00
  6610. 0000470A  6010                     bra        +0x12 /* 0000471C */
  6611. label0000470C:
  6612. 0000470C  BCAE 000C                cmp.l      D6, [A6 + 0xC]
  6613. 00004710  6C06                     bge        +0x8 /* 00004718 */
  6614. 00004712  17B6 30EE 6800           move.b     [A3 + D6], [A6 + D3.w - 0x18]
  6615. label00004718:
  6616. 00004718  5286                     addq.l     D6, 1
  6617. 0000471A  5243                     addq.w     D3, 1
  6618. label0000471C:
  6619. 0000471C  B843                     cmp.w      D4, D3
  6620. 0000471E  6EEC                     bgt        -0x12 /* 0000470C */
  6621. label00004720:
  6622. 00004720  BEAE 000C                cmp.l      D7, [A6 + 0xC]
  6623. 00004724  6D00 FF6C                blt        -0x92 /* 00004692 */
  6624. 00004728  BCAE 000C                cmp.l      D6, [A6 + 0xC]
  6625. 0000472C  6D04                     blt        +0x6 /* 00004732 */
  6626. 0000472E  70FF                     moveq.l    D0, 0xFFFFFFFF
  6627. 00004730  6002                     bra        +0x4 /* 00004734 */
  6628. label00004732:
  6629. 00004732  2006                     move.l     D0, D6
  6630. label00004734:
  6631. 00004734  4CDF 18F8                movem.l    D3,D4,D5,D6,D7,A3,A4, [A7]+
  6632. 00004738  4E5E                     unlink     A6
  6633. 0000473A  4E75                     rts
  6634. fn0000473C:
  6635. 0000473C  4E56 0000                link       A6, 0
  6636. 00004740  48E7 3F30                movem.l    -[A7], D2,D3,D4,D5,D6,D7,A2,A3
  6637. 00004744  246E 0008                movea.l    A2, [A6 + 0x8]
  6638. 00004748  2C2E 000C                move.l     D6, [A6 + 0xC]
  6639. 0000474C  266E 0010                movea.l    A3, [A6 + 0x10]
  6640. 00004750  2E2E 0014                move.l     D7, [A6 + 0x14]
  6641. label00004754:
  6642. 00004754  5386                     subq.l     D6, 1
  6643. 00004756  6B48                     bmi        +0x4A /* 000047A0 */
  6644. 00004758  161A                     move.b     D3, [A2]+
  6645. 0000475A  7407                     moveq.l    D2, 0x07
  6646. label0000475C:
  6647. 0000475C  E20B                     lsr        D3.b, 1
  6648. 0000475E  6410                     bcc        +0x12 /* 00004770 */
  6649. 00004760  5386                     subq.l     D6, 1
  6650. 00004762  6B3C                     bmi        +0x3E /* 000047A0 */
  6651. 00004764  5387                     subq.l     D7, 1
  6652. 00004766  6B38                     bmi        +0x3A /* 000047A0 */
  6653. 00004768  16DA                     move.b     [A3]+, [A2]+
  6654. 0000476A  51CA FFF0                dbf        D2, -0x12 /* 0000475C */
  6655. 0000476E  60E4                     bra        -0x1A /* 00004754 */
  6656. label00004770:
  6657. 00004770  5586                     subq.l     D6, 2
  6658. 00004772  6B2C                     bmi        +0x2E /* 000047A0 */
  6659. 00004774  101A                     move.b     D0, [A2]+
  6660. 00004776  E148                     lsl        D0.w, 8
  6661. 00004778  101A                     move.b     D0, [A2]+
  6662. 0000477A  3A00                     move.w     D5, D0
  6663. 0000477C  0245 0FFF                andi.w     D5, 0xFFF
  6664. 00004780  780F                     moveq.l    D4, 0x0F
  6665. 00004782  E958                     rol        D0.w, 4
  6666. 00004784  C840                     and.w      D4, D0
  6667. 00004786  5444                     addq.w     D4, 2
  6668. 00004788  204B                     movea.l    A0, A3
  6669. 0000478A  90FC 1000                sub.w      A0, 0x1000
  6670. 0000478E  D0C5                     add.w      A0, D5
  6671. label00004790:
  6672. 00004790  5387                     subq.l     D7, 1
  6673. 00004792  6B0C                     bmi        +0xE /* 000047A0 */
  6674. 00004794  16D8                     move.b     [A3]+, [A0]+
  6675. 00004796  51CC FFF8                dbf        D4, -0xA /* 00004790 */
  6676. 0000479A  51CA FFC0                dbf        D2, -0x42 /* 0000475C */
  6677. 0000479E  60B4                     bra        -0x4A /* 00004754 */
  6678. label000047A0:
  6679. 000047A0  4CDF 0CFC                movem.l    D2,D3,D4,D5,D6,D7,A2,A3, [A7]+
  6680. 000047A4  4E5E                     unlink     A6
  6681. 000047A6  4E75                     rts
  6682. fn000047A8:
  6683. 000047A8  4E56 0000                link       A6, 0
  6684. 000047AC  206E 0008                movea.l    A0, [A6 + 0x8]
  6685. 000047B0  202E 000C                move.l     D0, [A6 + 0xC]
  6686. 000047B4  1218                     move.b     D1, [A0]+
  6687. 000047B6  6006                     bra        +0x8 /* 000047BE */
  6688. label000047B8:
  6689. 000047B8  1410                     move.b     D2, [A0]
  6690. 000047BA  9318                     sub.b      [A0]+, D1
  6691. 000047BC  1202                     move.b     D1, D2
  6692. label000047BE:
  6693. 000047BE  5380                     subq.l     D0, 1
  6694. 000047C0  66F6                     bne        -0x8 /* 000047B8 */
  6695. 000047C2  4E5E                     unlink     A6
  6696. 000047C4  4E75                     rts
  6697. fn000047C6:
  6698. 000047C6  4E56 0000                link       A6, 0
  6699. 000047CA  206E 0008                movea.l    A0, [A6 + 0x8]
  6700. 000047CE  202E 000C                move.l     D0, [A6 + 0xC]
  6701. 000047D2  1218                     move.b     D1, [A0]+
  6702. 000047D4  6004                     bra        +0x6 /* 000047DA */
  6703. label000047D6:
  6704. 000047D6  D210                     add.b      D1, [A0]
  6705. 000047D8  10C1                     move.b     [A0]+, D1
  6706. label000047DA:
  6707. 000047DA  5380                     subq.l     D0, 1
  6708. 000047DC  66F8                     bne        -0x6 /* 000047D6 */
  6709. 000047DE  4E5E                     unlink     A6
  6710. 000047E0  4E75                     rts
  6711. 000047E2  4E56 FFF8                link       A6, -0x0008
  6712. 000047E6  48E7 0038                movem.l    -[A7], A2,A3,A4
  6713. 000047EA  286E 0008                movea.l    A4, [A6 + 0x8]
  6714. 000047EE  200C                     move.l     D0, A4
  6715. 000047F0  6700 0086                beq        +0x88 /* 00004878 */
  6716. 000047F4  42A7                     clr.l      -[A7]
  6717. 000047F6  2F0C                     move.l     -[A7], A4
  6718. 000047F8  4EBA F2A0                jsr        [PC - 0xD60 /* 00003A9A */]
  6719. 000047FC  2D5F FFFC                move.l     [A6 - 0x4], [A7]+
  6720. 00004800  7004                     moveq.l    D0, 0x04
  6721. 00004802  D0AE FFFC                add.l      D0, [A6 - 0x4]
  6722. 00004806  A122                     syscall    NewHandle, flags=1
  6723. 00004808  2648                     movea.l    A3, A0
  6724. 0000480A  200B                     move.l     D0, A3
  6725. 0000480C  676A                     beq        +0x6C /* 00004878 */
  6726. 0000480E  204B                     movea.l    A0, A3
  6727. 00004810  A029                     syscall    HLock
  6728. 00004812  204C                     movea.l    A0, A4
  6729. 00004814  A029                     syscall    HLock
  6730. 00004816  2453                     movea.l    A2, [A3]
  6731. 00004818  588A                     addq.l     A2, 4
  6732. 0000481A  486E FFF8                pea.l      [A6 - 0x8]
  6733. 0000481E  2F0A                     move.l     -[A7], A2
  6734. 00004820  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  6735. 00004824  2F14                     move.l     -[A7], [A4]
  6736. 00004826  4EBA FD1A                jsr        [PC - 0x2E6 /* 00004542 */]
  6737. 0000482A  41EE FFFC                lea.l      A0, [A6 - 0x4]
  6738. 0000482E  7004                     moveq.l    D0, 0x04
  6739. 00004830  2253                     movea.l    A1, [A3]
  6740. 00004832  A02E                     syscall    BlockMove/BlockMoveData
  6741. 00004834  204C                     movea.l    A0, A4
  6742. 00004836  A02A                     syscall    HUnlock
  6743. 00004838  204C                     movea.l    A0, A4
  6744. 0000483A  A023                     syscall    DisposHandle/DisposeHandle
  6745. 0000483C  99CC                     sub.l      A4, A4
  6746. 0000483E  7001                     moveq.l    D0, 0x01
  6747. 00004840  B0AE FFF8                cmp.l      D0, [A6 - 0x8]
  6748. 00004844  4FEF 0010                lea.l      A7, [A7 + 0x10]
  6749. 00004848  6C2E                     bge        +0x30 /* 00004878 */
  6750. 0000484A  58AE FFF8                addq.l     [A6 - 0x8], 4
  6751. 0000484E  202E FFF8                move.l     D0, [A6 - 0x8]
  6752. 00004852  A122                     syscall    NewHandle, flags=1
  6753. 00004854  2848                     movea.l    A4, A0
  6754. 00004856  200C                     move.l     D0, A4
  6755. 00004858  671A                     beq        +0x1C /* 00004874 */
  6756. 0000485A  204C                     movea.l    A0, A4
  6757. 0000485C  A029                     syscall    HLock
  6758. 0000485E  204B                     movea.l    A0, A3
  6759. 00004860  A029                     syscall    HLock
  6760. 00004862  202E FFF8                move.l     D0, [A6 - 0x8]
  6761. 00004866  2254                     movea.l    A1, [A4]
  6762. 00004868  2053                     movea.l    A0, [A3]
  6763. 0000486A  A02E                     syscall    BlockMove/BlockMoveData
  6764. 0000486C  204B                     movea.l    A0, A3
  6765. 0000486E  A02A                     syscall    HUnlock
  6766. 00004870  204C                     movea.l    A0, A4
  6767. 00004872  A02A                     syscall    HUnlock
  6768. label00004874:
  6769. 00004874  204B                     movea.l    A0, A3
  6770. 00004876  A023                     syscall    DisposHandle/DisposeHandle
  6771. label00004878:
  6772. 00004878  200C                     move.l     D0, A4
  6773. 0000487A  4CDF 1C00                movem.l    A2,A3,A4, [A7]+
  6774. 0000487E  4E5E                     unlink     A6
  6775. 00004880  4E75                     rts
  6776. fn00004882:
  6777. 00004882  4E56 FFFC                link       A6, -0x0004
  6778. 00004886  48E7 0018                movem.l    -[A7], A3,A4
  6779. 0000488A  286E 0008                movea.l    A4, [A6 + 0x8]
  6780. 0000488E  204C                     movea.l    A0, A4
  6781. 00004890  A029                     syscall    HLock
  6782. 00004892  43EE FFFC                lea.l      A1, [A6 - 0x4]
  6783. 00004896  7004                     moveq.l    D0, 0x04
  6784. 00004898  2054                     movea.l    A0, [A4]
  6785. 0000489A  A02E                     syscall    BlockMove/BlockMoveData
  6786. 0000489C  204C                     movea.l    A0, A4
  6787. 0000489E  A02A                     syscall    HUnlock
  6788. 000048A0  206E FFFC                movea.l    A0, [A6 - 0x4]
  6789. 000048A4  41E8 0100                lea.l      A0, [A0 + 0x100]
  6790. 000048A8  2008                     move.l     D0, A0
  6791. 000048AA  A122                     syscall    NewHandle, flags=1
  6792. 000048AC  2648                     movea.l    A3, A0
  6793. 000048AE  200B                     move.l     D0, A3
  6794. 000048B0  6736                     beq        +0x38 /* 000048E8 */
  6795. 000048B2  204C                     movea.l    A0, A4
  6796. 000048B4  A029                     syscall    HLock
  6797. 000048B6  204B                     movea.l    A0, A3
  6798. 000048B8  A029                     syscall    HLock
  6799. 000048BA  486E FFFC                pea.l      [A6 - 0x4]
  6800. 000048BE  2F13                     move.l     -[A7], [A3]
  6801. 000048C0  42A7                     clr.l      -[A7]
  6802. 000048C2  2F0C                     move.l     -[A7], A4
  6803. 000048C4  4EBA F1D4                jsr        [PC - 0xE2C /* 00003A9A */]
  6804. 000048C8  205F                     movea.l    A0, [A7]+
  6805. 000048CA  4868 FFFC                pea.l      [A0 - 0x4]
  6806. 000048CE  2054                     movea.l    A0, [A4]
  6807. 000048D0  4868 0004                pea.l      [A0 + 0x4]
  6808. 000048D4  4EBA FC8A                jsr        [PC - 0x376 /* 00004560 */]
  6809. 000048D8  204B                     movea.l    A0, A3
  6810. 000048DA  A02A                     syscall    HUnlock
  6811. 000048DC  204C                     movea.l    A0, A4
  6812. 000048DE  A02A                     syscall    HUnlock
  6813. 000048E0  204C                     movea.l    A0, A4
  6814. 000048E2  A023                     syscall    DisposHandle/DisposeHandle
  6815. 000048E4  4FEF 0010                lea.l      A7, [A7 + 0x10]
  6816. label000048E8:
  6817. 000048E8  200B                     move.l     D0, A3
  6818. 000048EA  4CDF 1800                movem.l    A3,A4, [A7]+
  6819. 000048EE  4E5E                     unlink     A6
  6820. 000048F0  4E75                     rts
  6821. fn000048F2:
  6822. 000048F2  4E56 0000                link       A6, 0
  6823. 000048F6  48E7 0338                movem.l    -[A7], D6,D7,A2,A3,A4
  6824. 000048FA  3C2E 0008                move.w     D6, [A6 + 0x8]
  6825. 000048FE  99CC                     sub.l      A4, A4
  6826. 00004900  4AAD FEA2                tst.l      [A5 - 0x15E]
  6827. 00004904  6740                     beq        +0x42 /* 00004946 */
  6828. 00004906  7E00                     moveq.l    D7, 0x00
  6829. 00004908  97CB                     sub.l      A3, A3
  6830. 0000490A  6034                     bra        +0x36 /* 00004940 */
  6831. label0000490C:
  6832. 0000490C  244B                     movea.l    A2, A3
  6833. 0000490E  D5ED FEA2                add.l      A2, [A5 - 0x15E]
  6834. 00004912  BC6A 001C                cmp.w      D6, [A2 + 0x1C]
  6835. 00004916  6622                     bne        +0x24 /* 0000493A */
  6836. 00004918  4AAA 0004                tst.l      [A2 + 0x4]
  6837. 0000491C  6704                     beq        +0x6 /* 00004922 */
  6838. 0000491E  284A                     movea.l    A4, A2
  6839. 00004920  6024                     bra        +0x26 /* 00004946 */
  6840. label00004922:
  6841. 00004922  4227                     clr.b      -[A7]
  6842. 00004924  2F0A                     move.l     -[A7], A2
  6843. 00004926  3F06                     move.w     -[A7], D6
  6844. 00004928  4EBA 03E6                jsr        [PC + 0x3E6 /* 00004D10 */]
  6845. 0000492C  4A00                     tst.b      D0
  6846. 0000492E  508F                     addq.l     A7, 8
  6847. 00004930  6708                     beq        +0xA /* 0000493A */
  6848. 00004932  284B                     movea.l    A4, A3
  6849. 00004934  D9ED FEA2                add.l      A4, [A5 - 0x15E]
  6850. 00004938  600C                     bra        +0xE /* 00004946 */
  6851. label0000493A:
  6852. 0000493A  5247                     addq.w     D7, 1
  6853. 0000493C  47EB 0026                lea.l      A3, [A3 + 0x26]
  6854. label00004940:
  6855. 00004940  BE6D FEA0                cmp.w      D7, [A5 - 0x160]
  6856. 00004944  6DC6                     blt        -0x38 /* 0000490C */
  6857. label00004946:
  6858. 00004946  200C                     move.l     D0, A4
  6859. 00004948  4CDF 1CC0                movem.l    D6,D7,A2,A3,A4, [A7]+
  6860. 0000494C  4E5E                     unlink     A6
  6861. 0000494E  4E75                     rts
  6862. fn00004950:
  6863. 00004950  48E7 0338                movem.l    -[A7], D6,D7,A2,A3,A4
  6864. 00004954  99CC                     sub.l      A4, A4
  6865. 00004956  7E00                     moveq.l    D7, 0x00
  6866. 00004958  97CB                     sub.l      A3, A3
  6867. 0000495A  6014                     bra        +0x16 /* 00004970 */
  6868. label0000495C:
  6869. 0000495C  244B                     movea.l    A2, A3
  6870. 0000495E  D5ED FEDC                add.l      A2, [A5 - 0x124]
  6871. 00004962  4A12                     tst.b      [A2]
  6872. 00004964  6604                     bne        +0x6 /* 0000496A */
  6873. 00004966  284A                     movea.l    A4, A2
  6874. 00004968  600C                     bra        +0xE /* 00004976 */
  6875. label0000496A:
  6876. 0000496A  5247                     addq.w     D7, 1
  6877. 0000496C  47EB 0068                lea.l      A3, [A3 + 0x68]
  6878. label00004970:
  6879. 00004970  BE6D FEDA                cmp.w      D7, [A5 - 0x126]
  6880. 00004974  6DE6                     blt        -0x18 /* 0000495C */
  6881. label00004976:
  6882. 00004976  200C                     move.l     D0, A4
  6883. 00004978  6630                     bne        +0x32 /* 000049AA */
  6884. 0000497A  2C2D FEAC                move.l     D6, [A5 - 0x154]
  6885. 0000497E  7E00                     moveq.l    D7, 0x00
  6886. 00004980  97CB                     sub.l      A3, A3
  6887. 00004982  6018                     bra        +0x1A /* 0000499C */
  6888. label00004984:
  6889. 00004984  244B                     movea.l    A2, A3
  6890. 00004986  D5ED FEDC                add.l      A2, [A5 - 0x124]
  6891. 0000498A  BCAA 0016                cmp.l      D6, [A2 + 0x16]
  6892. 0000498E  6F06                     ble        +0x8 /* 00004996 */
  6893. 00004990  284A                     movea.l    A4, A2
  6894. 00004992  2C2C 0016                move.l     D6, [A4 + 0x16]
  6895. label00004996:
  6896. 00004996  5247                     addq.w     D7, 1
  6897. 00004998  47EB 0068                lea.l      A3, [A3 + 0x68]
  6898. label0000499C:
  6899. 0000499C  BE6D FEDA                cmp.w      D7, [A5 - 0x126]
  6900. 000049A0  6DE2                     blt        -0x1C /* 00004984 */
  6901. 000049A2  200C                     move.l     D0, A4
  6902. 000049A4  6604                     bne        +0x6 /* 000049AA */
  6903. 000049A6  286D FEDC                movea.l    A4, [A5 - 0x124]
  6904. label000049AA:
  6905. 000049AA  4214                     clr.b      [A4]
  6906. 000049AC  42AC 0016                clr.l      [A4 + 0x16]
  6907. 000049B0  200C                     move.l     D0, A4
  6908. 000049B2  4CDF 1CC0                movem.l    D6,D7,A2,A3,A4, [A7]+
  6909. 000049B6  4E75                     rts
  6910. fn000049B8:
  6911. 000049B8  4E56 FFFC                link       A6, -0x0004
  6912. 000049BC  48E7 0118                movem.l    -[A7], D7,A3,A4
  6913. 000049C0  99CC                     sub.l      A4, A4
  6914. 000049C2  7E00                     moveq.l    D7, 0x00
  6915. 000049C4  99CC                     sub.l      A4, A4
  6916. 000049C6  601A                     bra        +0x1C /* 000049E2 */
  6917. label000049C8:
  6918. 000049C8  264C                     movea.l    A3, A4
  6919. 000049CA  D7ED FEDC                add.l      A3, [A5 - 0x124]
  6920. 000049CE  302B 0036                move.w     D0, [A3 + 0x36]
  6921. 000049D2  B06E 0008                cmp.w      D0, [A6 + 0x8]
  6922. 000049D6  6604                     bne        +0x6 /* 000049DC */
  6923. 000049D8  200B                     move.l     D0, A3
  6924. 000049DA  600E                     bra        +0x10 /* 000049EA */
  6925. label000049DC:
  6926. 000049DC  5247                     addq.w     D7, 1
  6927. 000049DE  49EC 0068                lea.l      A4, [A4 + 0x68]
  6928. label000049E2:
  6929. 000049E2  BE6D FEDA                cmp.w      D7, [A5 - 0x126]
  6930. 000049E6  6DE0                     blt        -0x1E /* 000049C8 */
  6931. 000049E8  7000                     moveq.l    D0, 0x00
  6932. label000049EA:
  6933. 000049EA  4CDF 1880                movem.l    D7,A3,A4, [A7]+
  6934. 000049EE  4E5E                     unlink     A6
  6935. 000049F0  4E75                     rts
  6936. fn000049F2:
  6937. 000049F2  4E56 0000                link       A6, 0
  6938. 000049F6  48E7 0308                movem.l    -[A7], D6,D7,A4
  6939. 000049FA  2E2E 0010                move.l     D7, [A6 + 0x10]
  6940. 000049FE  2C2E 0016                move.l     D6, [A6 + 0x16]
  6941. 00004A02  4EBA FF4C                jsr        [PC - 0xB4 /* 00004950 */]
  6942. 00004A06  2840                     movea.l    A4, D0
  6943. 00004A08  4AAE 0008                tst.l      [A6 + 0x8]
  6944. 00004A0C  6700 00CA                beq        +0xCC /* 00004AD8 */
  6945. 00004A10  4A2D FEAA                tst.b      [A5 - 0x156]
  6946. 00004A14  6600 00C2                bne        +0xC4 /* 00004AD8 */
  6947. 00004A18  4A6D FEA8                tst.w      [A5 - 0x158]
  6948. 00004A1C  6F08                     ble        +0xA /* 00004A26 */
  6949. 00004A1E  4AAD FEBC                tst.l      [A5 - 0x144]
  6950. 00004A22  6700 00B4                beq        +0xB6 /* 00004AD8 */
  6951. label00004A26:
  6952. 00004A26  3B6D FEA6 FEA8           move.w     [A5 - 0x158], [A5 - 0x15A]
  6953. 00004A2C  0C6E FFFF 001E           cmpi.w     [A6 + 0x1E], 0xFFFF
  6954. 00004A32  6714                     beq        +0x16 /* 00004A48 */
  6955. 00004A34  2F2E 000C                move.l     -[A7], [A6 + 0xC]
  6956. 00004A38  2F07                     move.l     -[A7], D7
  6957. 00004A3A  4EBA 00A4                jsr        [PC + 0xA4 /* 00004AE0 */]
  6958. 00004A3E  3040                     movea.w    A0, D0
  6959. 00004A40  2948 0012                move.l     [A4 + 0x12], A0
  6960. 00004A44  508F                     addq.l     A7, 8
  6961. 00004A46  6006                     bra        +0x8 /* 00004A4E */
  6962. label00004A48:
  6963. 00004A48  70FF                     moveq.l    D0, 0xFFFFFFFF
  6964. 00004A4A  2940 0012                move.l     [A4 + 0x12], D0
  6965. label00004A4E:
  6966. 00004A4E  296D FEAC 0016           move.l     [A4 + 0x16], [A5 - 0x154]
  6967. 00004A54  2F06                     move.l     -[A7], D6
  6968. 00004A56  2F07                     move.l     -[A7], D7
  6969. 00004A58  4EBA 0086                jsr        [PC + 0x86 /* 00004AE0 */]
  6970. 00004A5C  3040                     movea.w    A0, D0
  6971. 00004A5E  2948 0002                move.l     [A4 + 0x2], A0
  6972. 00004A62  2EAE 001A                move.l     [A7], [A6 + 0x1A]
  6973. 00004A66  2F07                     move.l     -[A7], D7
  6974. 00004A68  4EBA 0076                jsr        [PC + 0x76 /* 00004AE0 */]
  6975. 00004A6C  3040                     movea.w    A0, D0
  6976. 00004A6E  91C6                     sub.l      A0, D6
  6977. 00004A70  2948 0006                move.l     [A4 + 0x6], A0
  6978. 00004A74  5BAC 0002                subq.l     [A4 + 0x2], 5
  6979. 00004A78  5BAC 0006                subq.l     [A4 + 0x6], 5
  6980. 00004A7C  7006                     moveq.l    D0, 0x06
  6981. 00004A7E  D0AE 0008                add.l      D0, [A6 + 0x8]
  6982. 00004A82  2940 001E                move.l     [A4 + 0x1E], D0
  6983. 00004A86  296E 000C 0022           move.l     [A4 + 0x22], [A6 + 0xC]
  6984. 00004A8C  2947 0026                move.l     [A4 + 0x26], D7
  6985. 00004A90  2946 002A                move.l     [A4 + 0x2A], D6
  6986. 00004A94  296E 001A 002E           move.l     [A4 + 0x2E], [A6 + 0x1A]
  6987. 00004A9A  396E 001E 003C           move.w     [A4 + 0x3C], [A6 + 0x1E]
  6988. 00004AA0  296E 0022 003E           move.l     [A4 + 0x3E], [A6 + 0x22]
  6989. 00004AA6  196E 0020 0042           move.b     [A4 + 0x42], [A6 + 0x20]
  6990. 00004AAC  41EC 003C                lea.l      A0, [A4 + 0x3C]
  6991. 00004AB0  2948 0032                move.l     [A4 + 0x32], A0
  6992. 00004AB4  396E 0014 0036           move.w     [A4 + 0x36], [A6 + 0x14]
  6993. 00004ABA  200D                     move.l     D0, A5
  6994. 00004ABC  2A78 0904                movea.l    A5, [0x00000904 /* CurrentA5 */]
  6995. 00004AC0  2940 0038                move.l     [A4 + 0x38], D0
  6996. 00004AC4  18BC 0001                move.b     [A4], 0x1
  6997. 00004AC8  486C 001E                pea.l      [A4 + 0x1E]
  6998. 00004ACC  3F3C 0064                move.w     -[A7], 0x64 /* 'd' */
  6999. 00004AD0  4EBA F370                jsr        [PC - 0xC90 /* 00003E42 */]
  7000. 00004AD4  4FEF 0012                lea.l      A7, [A7 + 0x12]
  7001. label00004AD8:
  7002. 00004AD8  4CDF 10C0                movem.l    D6,D7,A4, [A7]+
  7003. 00004ADC  4E5E                     unlink     A6
  7004. 00004ADE  4E75                     rts
  7005. fn00004AE0:
  7006. 00004AE0  4E56 0000                link       A6, 0
  7007. 00004AE4  2F07                     move.l     -[A7], D7
  7008. 00004AE6  2E2E 0008                move.l     D7, [A6 + 0x8]
  7009. 00004AEA  7010                     moveq.l    D0, 0x10
  7010. 00004AEC  E0A7                     asr        D7, D0
  7011. 00004AEE  4A47                     tst.w      D7
  7012. 00004AF0  6718                     beq        +0x1A /* 00004B0A */
  7013. 00004AF2  3047                     movea.w    A0, D7
  7014. 00004AF4  2F08                     move.l     -[A7], A0
  7015. 00004AF6  4878 003C                push.l     0x3C /* '<' */
  7016. 00004AFA  2F2E 000C                move.l     -[A7], [A6 + 0xC]
  7017. 00004AFE  4EAD 0042                jsr        [A5 + 0x42 /* export_4 */]
  7018. 00004B02  2F00                     move.l     -[A7], D0
  7019. 00004B04  4EAD 005A                jsr        [A5 + 0x5A /* export_7 */]
  7020. 00004B08  6002                     bra        +0x4 /* 00004B0C */
  7021. label00004B0A:
  7022. 00004B0A  7000                     moveq.l    D0, 0x00
  7023. label00004B0C:
  7024. 00004B0C  2E1F                     move.l     D7, [A7]+
  7025. 00004B0E  4E5E                     unlink     A6
  7026. 00004B10  4E75                     rts
  7027. export_28:
  7028. 00004B12  4E56 FFFE                link       A6, -0x0002
  7029. 00004B16  48E7 0738                movem.l    -[A7], D5,D6,D7,A2,A3,A4
  7030. 00004B1A  200D                     move.l     D0, A5
  7031. 00004B1C  2A78 0904                movea.l    A5, [0x00000904 /* CurrentA5 */]
  7032. 00004B20  2E00                     move.l     D7, D0
  7033. 00004B22  3B7C 0001 FED4           move.w     [A5 - 0x12C], 0x1
  7034. 00004B28  4A2D FED8                tst.b      [A5 - 0x128]
  7035. 00004B2C  6600 0120                bne        +0x122 /* 00004C4E */
  7036. 00004B30  1B7C 0001 FED8           move.b     [A5 - 0x128], 0x1
  7037. 00004B36  4A2D FE7C                tst.b      [A5 - 0x184]
  7038. 00004B3A  670A                     beq        +0xC /* 00004B46 */
  7039. 00004B3C  2F2D FEAC                move.l     -[A7], [A5 - 0x154]
  7040. 00004B40  4EBA F976                jsr        [PC - 0x68A /* 000044B8 */]
  7041. 00004B44  588F                     addq.l     A7, 4
  7042. label00004B46:
  7043. 00004B46  4A6D FEA8                tst.w      [A5 - 0x158]
  7044. 00004B4A  6F04                     ble        +0x6 /* 00004B50 */
  7045. 00004B4C  536D FEA8                subq.w     [A5 - 0x158], 1
  7046. label00004B50:
  7047. 00004B50  4AAD FEB4                tst.l      [A5 - 0x14C]
  7048. 00004B54  6706                     beq        +0x8 /* 00004B5C */
  7049. 00004B56  206D FEB4                movea.l    A0, [A5 - 0x14C]
  7050. 00004B5A  4E90                     jsr        [A0]
  7051. label00004B5C:
  7052. 00004B5C  4AAD FEDC                tst.l      [A5 - 0x124]
  7053. 00004B60  6756                     beq        +0x58 /* 00004BB8 */
  7054. 00004B62  286D FEDC                movea.l    A4, [A5 - 0x124]
  7055. 00004B66  7C00                     moveq.l    D6, 0x00
  7056. 00004B68  6048                     bra        +0x4A /* 00004BB2 */
  7057. label00004B6A:
  7058. 00004B6A  4A14                     tst.b      [A4]
  7059. 00004B6C  673E                     beq        +0x40 /* 00004BAC */
  7060. 00004B6E  2A2C 0012                move.l     D5, [A4 + 0x12]
  7061. 00004B72  70FF                     moveq.l    D0, 0xFFFFFFFF
  7062. 00004B74  B085                     cmp.l      D0, D5
  7063. 00004B76  6714                     beq        +0x16 /* 00004B8C */
  7064. 00004B78  4A85                     tst.l      D5
  7065. 00004B7A  6F06                     ble        +0x8 /* 00004B82 */
  7066. 00004B7C  53AC 0012                subq.l     [A4 + 0x12], 1
  7067. 00004B80  600A                     bra        +0xC /* 00004B8C */
  7068. label00004B82:
  7069. 00004B82  4214                     clr.b      [A4]
  7070. 00004B84  422C 0042                clr.b      [A4 + 0x42]
  7071. 00004B88  426C 003C                clr.w      [A4 + 0x3C]
  7072. label00004B8C:
  7073. 00004B8C  4A2C 0042                tst.b      [A4 + 0x42]
  7074. 00004B90  671A                     beq        +0x1C /* 00004BAC */
  7075. 00004B92  4AAC 003E                tst.l      [A4 + 0x3E]
  7076. 00004B96  6714                     beq        +0x16 /* 00004BAC */
  7077. 00004B98  206C 003E                movea.l    A0, [A4 + 0x3E]
  7078. 00004B9C  4E90                     jsr        [A0]
  7079. 00004B9E  4A00                     tst.b      D0
  7080. 00004BA0  6704                     beq        +0x6 /* 00004BA6 */
  7081. 00004BA2  70FF                     moveq.l    D0, 0xFFFFFFFF
  7082. 00004BA4  6002                     bra        +0x4 /* 00004BA8 */
  7083. label00004BA6:
  7084. 00004BA6  7000                     moveq.l    D0, 0x00
  7085. label00004BA8:
  7086. 00004BA8  3940 003C                move.w     [A4 + 0x3C], D0
  7087. label00004BAC:
  7088. 00004BAC  5246                     addq.w     D6, 1
  7089. 00004BAE  49EC 0068                lea.l      A4, [A4 + 0x68]
  7090. label00004BB2:
  7091. 00004BB2  BC6D FEDA                cmp.w      D6, [A5 - 0x126]
  7092. 00004BB6  6DB2                     blt        -0x4C /* 00004B6A */
  7093. label00004BB8:
  7094. 00004BB8  4AAD FEBC                tst.l      [A5 - 0x144]
  7095. 00004BBC  6700 0088                beq        +0x8A /* 00004C46 */
  7096. 00004BC0  4A6D FEC8                tst.w      [A5 - 0x138]
  7097. 00004BC4  6C7C                     bge        +0x7E /* 00004C42 */
  7098. 00004BC6  302D FEC4                move.w     D0, [A5 - 0x13C]
  7099. 00004BCA  B06D FEC6                cmp.w      D0, [A5 - 0x13A]
  7100. 00004BCE  6C6C                     bge        +0x6E /* 00004C3C */
  7101. 00004BD0  302D FEC4                move.w     D0, [A5 - 0x13C]
  7102. 00004BD4  48C0                     ext.l      D0
  7103. 00004BD6  E788                     lsl        D0, 3
  7104. 00004BD8  D0AD FEBC                add.l      D0, [A5 - 0x144]
  7105. 00004BDC  2640                     movea.l    A3, D0
  7106. 00004BDE  246D FEBC                movea.l    A2, [A5 - 0x144]
  7107. 00004BE2  0C53 FFFF                cmpi.w     [A3], 0xFFFF
  7108. 00004BE6  6614                     bne        +0x16 /* 00004BFC */
  7109. 00004BE8  422D FED8                clr.b      [A5 - 0x128]
  7110. 00004BEC  3F13                     move.w     -[A7], [A3]
  7111. 00004BEE  4EBA 0A6C                jsr        [PC + 0xA6C /* 0000565C */]
  7112. 00004BF2  1B7C 0001 FED8           move.b     [A5 - 0x128], 0x1
  7113. 00004BF8  548F                     addq.l     A7, 2
  7114. 00004BFA  600C                     bra        +0xE /* 00004C08 */
  7115. label00004BFC:
  7116. 00004BFC  2F2B 0002                move.l     -[A7], [A3 + 0x2]
  7117. 00004C00  3F13                     move.w     -[A7], [A3]
  7118. 00004C02  4EBA 0742                jsr        [PC + 0x742 /* 00005346 */]
  7119. 00004C06  5C8F                     addq.l     A7, 6
  7120. label00004C08:
  7121. 00004C08  3C2B 0006                move.w     D6, [A3 + 0x6]
  7122. 00004C0C  0C46 FFFE                cmpi.w     D6, 0xFFFE
  7123. 00004C10  661C                     bne        +0x1E /* 00004C2E */
  7124. 00004C12  3F13                     move.w     -[A7], [A3]
  7125. 00004C14  4EBA FDA2                jsr        [PC - 0x25E /* 000049B8 */]
  7126. 00004C18  2840                     movea.l    A4, D0
  7127. 00004C1A  200C                     move.l     D0, A4
  7128. 00004C1C  548F                     addq.l     A7, 2
  7129. 00004C1E  6708                     beq        +0xA /* 00004C28 */
  7130. 00004C20  3B6C 0014 FEC8           move.w     [A5 - 0x138], [A4 + 0x14]
  7131. 00004C26  600A                     bra        +0xC /* 00004C32 */
  7132. label00004C28:
  7133. 00004C28  426D FEC8                clr.w      [A5 - 0x138]
  7134. 00004C2C  6004                     bra        +0x6 /* 00004C32 */
  7135. label00004C2E:
  7136. 00004C2E  3B46 FEC8                move.w     [A5 - 0x138], D6
  7137. label00004C32:
  7138. 00004C32  526D FEC4                addq.w     [A5 - 0x13C], 1
  7139. 00004C36  2B4A FEBC                move.l     [A5 - 0x144], A2
  7140. 00004C3A  600A                     bra        +0xC /* 00004C46 */
  7141. label00004C3C:
  7142. 00004C3C  42AD FEBC                clr.l      [A5 - 0x144]
  7143. 00004C40  6004                     bra        +0x6 /* 00004C46 */
  7144. label00004C42:
  7145. 00004C42  536D FEC8                subq.w     [A5 - 0x138], 1
  7146. label00004C46:
  7147. 00004C46  52AD FEAC                addq.l     [A5 - 0x154], 1
  7148. 00004C4A  422D FED8                clr.b      [A5 - 0x128]
  7149. label00004C4E:
  7150. 00004C4E  2007                     move.l     D0, D7
  7151. 00004C50  C18D                     exg        D0, A5
  7152. 00004C52  4CDF 1CE0                movem.l    D5,D6,D7,A2,A3,A4, [A7]+
  7153. 00004C56  4E5E                     unlink     A6
  7154. 00004C58  4E75                     rts
  7155. 00004C5A  4E56 0000                link       A6, 0
  7156. 00004C5E  2B6E 0008 FEB4           move.l     [A5 - 0x14C], [A6 + 0x8]
  7157. 00004C64  4E5E                     unlink     A6
  7158. 00004C66  4E75                     rts
  7159. 00004C68  4E56 0000                link       A6, 0
  7160. 00004C6C  4E5E                     unlink     A6
  7161. 00004C6E  4E75                     rts
  7162. 00004C70  4E56 FFFC                link       A6, -0x0004
  7163. 00004C74  2F07                     move.l     -[A7], D7
  7164. 00004C76  206E 0008                movea.l    A0, [A6 + 0x8]
  7165. 00004C7A  3E28 0002                move.w     D7, [A0 + 0x2]
  7166. 00004C7E  0C47 736D                cmpi.w     D7, 0x736D /* 'sm' */
  7167. 00004C82  6624                     bne        +0x26 /* 00004CA8 */
  7168. 00004C84  206E 0008                movea.l    A0, [A6 + 0x8]
  7169. 00004C88  2028 0004                move.l     D0, [A0 + 0x4]
  7170. 00004C8C  C18D                     exg        D0, A5
  7171. 00004C8E  2E00                     move.l     D7, D0
  7172. 00004C90  4AAD FEB8                tst.l      [A5 - 0x148]
  7173. 00004C94  6706                     beq        +0x8 /* 00004C9C */
  7174. 00004C96  206D FEB8                movea.l    A0, [A5 - 0x148]
  7175. 00004C9A  4E90                     jsr        [A0]
  7176. label00004C9C:
  7177. 00004C9C  206E 0008                movea.l    A0, [A6 + 0x8]
  7178. 00004CA0  2028 0004                move.l     D0, [A0 + 0x4]
  7179. 00004CA4  C18D                     exg        D0, A5
  7180. 00004CA6  2E00                     move.l     D7, D0
  7181. label00004CA8:
  7182. 00004CA8  2E1F                     move.l     D7, [A7]+
  7183. 00004CAA  4E5E                     unlink     A6
  7184. 00004CAC  205F                     movea.l    A0, [A7]+
  7185. 00004CAE  508F                     addq.l     A7, 8
  7186. 00004CB0  4ED0                     jmp        [A0]
  7187. fn00004CB2:
  7188. 00004CB2  4E56 FFFC                link       A6, -0x0004
  7189. 00004CB6  48E7 0018                movem.l    -[A7], A3,A4
  7190. 00004CBA  286E 0008                movea.l    A4, [A6 + 0x8]
  7191. 00004CBE  204C                     movea.l    A0, A4
  7192. 00004CC0  A029                     syscall    HLock
  7193. 00004CC2  43EE FFFC                lea.l      A1, [A6 - 0x4]
  7194. 00004CC6  7004                     moveq.l    D0, 0x04
  7195. 00004CC8  2054                     movea.l    A0, [A4]
  7196. 00004CCA  A02E                     syscall    BlockMove/BlockMoveData
  7197. 00004CCC  202E FFFC                move.l     D0, [A6 - 0x4]
  7198. 00004CD0  A122                     syscall    NewHandle, flags=1
  7199. 00004CD2  2648                     movea.l    A3, A0
  7200. 00004CD4  200B                     move.l     D0, A3
  7201. 00004CD6  672A                     beq        +0x2C /* 00004D02 */
  7202. 00004CD8  204B                     movea.l    A0, A3
  7203. 00004CDA  A029                     syscall    HLock
  7204. 00004CDC  486E FFFC                pea.l      [A6 - 0x4]
  7205. 00004CE0  2F13                     move.l     -[A7], [A3]
  7206. 00004CE2  42A7                     clr.l      -[A7]
  7207. 00004CE4  2F0C                     move.l     -[A7], A4
  7208. 00004CE6  4EBA EDB2                jsr        [PC - 0x124E /* 00003A9A */]
  7209. 00004CEA  205F                     movea.l    A0, [A7]+
  7210. 00004CEC  4868 FFFC                pea.l      [A0 - 0x4]
  7211. 00004CF0  2054                     movea.l    A0, [A4]
  7212. 00004CF2  4868 0004                pea.l      [A0 + 0x4]
  7213. 00004CF6  4EBA F8BC                jsr        [PC - 0x744 /* 000045B4 */]
  7214. 00004CFA  204B                     movea.l    A0, A3
  7215. 00004CFC  A02A                     syscall    HUnlock
  7216. 00004CFE  4FEF 0010                lea.l      A7, [A7 + 0x10]
  7217. label00004D02:
  7218. 00004D02  204C                     movea.l    A0, A4
  7219. 00004D04  A02A                     syscall    HUnlock
  7220. 00004D06  200B                     move.l     D0, A3
  7221. 00004D08  4CDF 1800                movem.l    A3,A4, [A7]+
  7222. 00004D0C  4E5E                     unlink     A6
  7223. 00004D0E  4E75                     rts
  7224. fn00004D10:
  7225. 00004D10  4E56 FFF2                link       A6, -0x000E
  7226. 00004D14  48E7 1F38                movem.l    -[A7], D3,D4,D5,D6,D7,A2,A3,A4
  7227. 00004D18  3E2E 0008                move.w     D7, [A6 + 0x8]
  7228. 00004D1C  286E 000A                movea.l    A4, [A6 + 0xA]
  7229. 00004D20  422E FFF3                clr.b      [A6 - 0xD]
  7230. 00004D24  4A2E 000E                tst.b      [A6 + 0xE]
  7231. 00004D28  6600 0122                bne        +0x124 /* 00004E4C */
  7232. 00004D2C  4214                     clr.b      [A4]
  7233. 00004D2E  42A7                     clr.l      -[A7]
  7234. 00004D30  2F3C 6373 6E64           move.l     -[A7], 0x63736E64 /* 'csnd' */
  7235. 00004D36  3F07                     move.w     -[A7], D7
  7236. 00004D38  A9A0                     syscall    GetResource
  7237. 00004D3A  261F                     move.l     D3, [A7]+
  7238. 00004D3C  4A83                     tst.l      D3
  7239. 00004D3E  671C                     beq        +0x1E /* 00004D5C */
  7240. 00004D40  422C 0001                clr.b      [A4 + 0x1]
  7241. 00004D44  2F03                     move.l     -[A7], D3
  7242. 00004D46  4EBA FF6A                jsr        [PC - 0x96 /* 00004CB2 */]
  7243. 00004D4A  2D40 FFF4                move.l     [A6 - 0xC], D0
  7244. 00004D4E  2043                     movea.l    A0, D3
  7245. 00004D50  A049                     syscall    HPurge
  7246. 00004D52  2E83                     move.l     [A7], D3
  7247. 00004D54  A9A3                     syscall    ReleaseResource
  7248. 00004D56  262E FFF4                move.l     D3, [A6 - 0xC]
  7249. 00004D5A  601A                     bra        +0x1C /* 00004D76 */
  7250. label00004D5C:
  7251. 00004D5C  197C 0001 0001           move.b     [A4 + 0x1], 0x1
  7252. 00004D62  197C 0001 0002           move.b     [A4 + 0x2], 0x1
  7253. 00004D68  42A7                     clr.l      -[A7]
  7254. 00004D6A  2F3C 736E 6420           move.l     -[A7], 0x736E6420 /* 'snd ' */
  7255. 00004D70  3F07                     move.w     -[A7], D7
  7256. 00004D72  A9A0                     syscall    GetResource
  7257. 00004D74  261F                     move.l     D3, [A7]+
  7258. label00004D76:
  7259. 00004D76  4A83                     tst.l      D3
  7260. 00004D78  6700 00D4                beq        +0xD6 /* 00004E4E */
  7261. 00004D7C  2043                     movea.l    A0, D3
  7262. 00004D7E  A069                     syscall    HGetState
  7263. 00004D80  1940 0003                move.b     [A4 + 0x3], D0
  7264. 00004D84  4A2C 0003                tst.b      [A4 + 0x3]
  7265. 00004D88  6B04                     bmi        +0x6 /* 00004D8E */
  7266. 00004D8A  2043                     movea.l    A0, D3
  7267. 00004D8C  A064                     syscall    MoveHHi
  7268. label00004D8E:
  7269. 00004D8E  082C 0005 0003           btst.b     [A4 + 0x3], 0x5
  7270. 00004D94  6604                     bne        +0x6 /* 00004D9A */
  7271. 00004D96  422C 0002                clr.b      [A4 + 0x2]
  7272. label00004D9A:
  7273. 00004D9A  4A78 0220                tst.w      [0x00000220 /* MemErr */]
  7274. 00004D9E  6600 0098                bne        +0x9A /* 00004E38 */
  7275. 00004DA2  2043                     movea.l    A0, D3
  7276. 00004DA4  A029                     syscall    HLock
  7277. 00004DA6  2043                     movea.l    A0, D3
  7278. 00004DA8  2450                     movea.l    A2, [A0]
  7279. 00004DAA  3D52 FFF8                move.w     [A6 - 0x8], [A2]
  7280. 00004DAE  302E FFF8                move.w     D0, [A6 - 0x8]
  7281. 00004DB2  6722                     beq        +0x24 /* 00004DD6 */
  7282. 00004DB4  6B20                     bmi        +0x22 /* 00004DD6 */
  7283. 00004DB6  5540                     subq.w     D0, 2
  7284. 00004DB8  6712                     beq        +0x14 /* 00004DCC */
  7285. 00004DBA  6A1A                     bpl        +0x1C /* 00004DD6 */
  7286. 00004DBC  382A 0002                move.w     D4, [A2 + 0x2]
  7287. 00004DC0  7006                     moveq.l    D0, 0x06
  7288. 00004DC2  C1C4                     muls.w     D0, D4
  7289. 00004DC4  3D72 0004 FFFA           move.w     [A6 - 0x6], [A2 + D0.w + 0x4]
  7290. 00004DCA  6010                     bra        +0x12 /* 00004DDC */
  7291. label00004DCC:
  7292. 00004DCC  7800                     moveq.l    D4, 0x00
  7293. 00004DCE  3D6A 0004 FFFA           move.w     [A6 - 0x6], [A2 + 0x4]
  7294. 00004DD4  6006                     bra        +0x8 /* 00004DDC */
  7295. label00004DD6:
  7296. 00004DD6  3D7C FFFF FFF8           move.w     [A6 - 0x8], 0xFFFF
  7297. label00004DDC:
  7298. 00004DDC  0C6E FFFF FFF8           cmpi.w     [A6 - 0x8], 0xFFFF
  7299. 00004DE2  6750                     beq        +0x52 /* 00004E34 */
  7300. 00004DE4  7006                     moveq.l    D0, 0x06
  7301. 00004DE6  C1C4                     muls.w     D0, D4
  7302. 00004DE8  3040                     movea.w    A0, D0
  7303. 00004DEA  302E FFFA                move.w     D0, [A6 - 0x6]
  7304. 00004DEE  E748                     lsl        D0.w, 3
  7305. 00004DF0  5C40                     addq.w     D0, 6
  7306. 00004DF2  D0C0                     add.w      A0, D0
  7307. 00004DF4  2D48 FFFC                move.l     [A6 - 0x4], A0
  7308. 00004DF8  42A7                     clr.l      -[A7]
  7309. 00004DFA  2243                     movea.l    A1, D3
  7310. 00004DFC  2F11                     move.l     -[A7], [A1]
  7311. 00004DFE  4EBA EE72                jsr        [PC - 0x118E /* 00003C72 */]
  7312. 00004E02  266E FFFC                movea.l    A3, [A6 - 0x4]
  7313. 00004E06  D7DF                     add.l      A3, [A7]+
  7314. 00004E08  294B 0008                move.l     [A4 + 0x8], A3
  7315. 00004E0C  41EB 0016                lea.l      A0, [A3 + 0x16]
  7316. 00004E10  2948 000C                move.l     [A4 + 0xC], A0
  7317. 00004E14  296B 0004 0010           move.l     [A4 + 0x10], [A3 + 0x4]
  7318. 00004E1A  296B 000C 0014           move.l     [A4 + 0x14], [A3 + 0xC]
  7319. 00004E20  296B 0010 0018           move.l     [A4 + 0x18], [A3 + 0x10]
  7320. 00004E26  296B 0008 001E           move.l     [A4 + 0x1E], [A3 + 0x8]
  7321. 00004E2C  1D7C 0001 FFF3           move.b     [A6 - 0xD], 0x1
  7322. 00004E32  601A                     bra        +0x1C /* 00004E4E */
  7323. label00004E34:
  7324. 00004E34  2043                     movea.l    A0, D3
  7325. 00004E36  A02A                     syscall    HUnlock
  7326. label00004E38:
  7327. 00004E38  4A2C 0001                tst.b      [A4 + 0x1]
  7328. 00004E3C  6706                     beq        +0x8 /* 00004E44 */
  7329. 00004E3E  2F03                     move.l     -[A7], D3
  7330. 00004E40  A9A3                     syscall    ReleaseResource
  7331. 00004E42  6004                     bra        +0x6 /* 00004E48 */
  7332. label00004E44:
  7333. 00004E44  2043                     movea.l    A0, D3
  7334. 00004E46  A023                     syscall    DisposHandle/DisposeHandle
  7335. label00004E48:
  7336. 00004E48  7600                     moveq.l    D3, 0x00
  7337. 00004E4A  6002                     bra        +0x4 /* 00004E4E */
  7338. label00004E4C:
  7339. 00004E4C  7600                     moveq.l    D3, 0x00
  7340. label00004E4E:
  7341. 00004E4E  3947 001C                move.w     [A4 + 0x1C], D7
  7342. 00004E52  2943 0004                move.l     [A4 + 0x4], D3
  7343. 00004E56  102E FFF3                move.b     D0, [A6 - 0xD]
  7344. 00004E5A  4CDF 1CF8                movem.l    D3,D4,D5,D6,D7,A2,A3,A4, [A7]+
  7345. 00004E5E  4E5E                     unlink     A6
  7346. 00004E60  4E75                     rts
  7347. fn00004E62:
  7348. 00004E62  4E56 0000                link       A6, 0
  7349. 00004E66  48E7 0038                movem.l    -[A7], A2,A3,A4
  7350. 00004E6A  286E 0008                movea.l    A4, [A6 + 0x8]
  7351. 00004E6E  4EBA 083E                jsr        [PC + 0x83E /* 000056AE */]
  7352. 00004E72  4A00                     tst.b      D0
  7353. 00004E74  6744                     beq        +0x46 /* 00004EBA */
  7354. 00004E76  4AAD FEBC                tst.l      [A5 - 0x144]
  7355. 00004E7A  663E                     bne        +0x40 /* 00004EBA */
  7356. 00004E7C  45EC 0004                lea.l      A2, [A4 + 0x4]
  7357. 00004E80  2652                     movea.l    A3, [A2]
  7358. 00004E82  200B                     move.l     D0, A3
  7359. 00004E84  6734                     beq        +0x36 /* 00004EBA */
  7360. 00004E86  4A2C 0001                tst.b      [A4 + 0x1]
  7361. 00004E8A  671A                     beq        +0x1C /* 00004EA6 */
  7362. 00004E8C  4A2C 0002                tst.b      [A4 + 0x2]
  7363. 00004E90  670A                     beq        +0xC /* 00004E9C */
  7364. 00004E92  204B                     movea.l    A0, A3
  7365. 00004E94  A02A                     syscall    HUnlock
  7366. 00004E96  2F0B                     move.l     -[A7], A3
  7367. 00004E98  A9A3                     syscall    ReleaseResource
  7368. 00004E9A  6012                     bra        +0x14 /* 00004EAE */
  7369. label00004E9C:
  7370. 00004E9C  102C 0003                move.b     D0, [A4 + 0x3]
  7371. 00004EA0  204B                     movea.l    A0, A3
  7372. 00004EA2  A06A                     syscall    HSetState
  7373. 00004EA4  6008                     bra        +0xA /* 00004EAE */
  7374. label00004EA6:
  7375. 00004EA6  204B                     movea.l    A0, A3
  7376. 00004EA8  A02A                     syscall    HUnlock
  7377. 00004EAA  204B                     movea.l    A0, A3
  7378. 00004EAC  A023                     syscall    DisposHandle/DisposeHandle
  7379. label00004EAE:
  7380. 00004EAE  4292                     clr.l      [A2]
  7381. 00004EB0  42AC 0008                clr.l      [A4 + 0x8]
  7382. 00004EB4  42AC 000C                clr.l      [A4 + 0xC]
  7383. 00004EB8  4214                     clr.b      [A4]
  7384. label00004EBA:
  7385. 00004EBA  4CDF 1C00                movem.l    A2,A3,A4, [A7]+
  7386. 00004EBE  4E5E                     unlink     A6
  7387. 00004EC0  4E75                     rts
  7388. fn00004EC2:
  7389. 00004EC2  4E56 0000                link       A6, 0
  7390. 00004EC6  48E7 0738                movem.l    -[A7], D5,D6,D7,A2,A3,A4
  7391. 00004ECA  266E 0008                movea.l    A3, [A6 + 0x8]
  7392. 00004ECE  7A00                     moveq.l    D5, 0x00
  7393. 00004ED0  284B                     movea.l    A4, A3
  7394. 00004ED2  7E00                     moveq.l    D7, 0x00
  7395. 00004ED4  6002                     bra        +0x4 /* 00004ED8 */
  7396. label00004ED6:
  7397. 00004ED6  5247                     addq.w     D7, 1
  7398. label00004ED8:
  7399. 00004ED8  0C5C FFFF                cmpi.w     [A4]+, 0xFFFF
  7400. 00004EDC  66F8                     bne        -0x6 /* 00004ED6 */
  7401. 00004EDE  4A47                     tst.w      D7
  7402. 00004EE0  6F42                     ble        +0x44 /* 00004F24 */
  7403. 00004EE2  7026                     moveq.l    D0, 0x26
  7404. 00004EE4  C1C7                     muls.w     D0, D7
  7405. 00004EE6  A31E                     syscall    NewPtrClear, flags=3
  7406. 00004EE8  2B48 FEA2                move.l     [A5 - 0x15E], A0
  7407. 00004EEC  2008                     move.l     D0, A0
  7408. 00004EEE  6732                     beq        +0x34 /* 00004F22 */
  7409. 00004EF0  3B47 FEA0                move.w     [A5 - 0x160], D7
  7410. 00004EF4  7C00                     moveq.l    D6, 0x00
  7411. 00004EF6  99CC                     sub.l      A4, A4
  7412. 00004EF8  95CA                     sub.l      A2, A2
  7413. 00004EFA  6020                     bra        +0x22 /* 00004F1C */
  7414. label00004EFC:
  7415. 00004EFC  1F2E 000C                move.b     -[A7], [A6 + 0xC]
  7416. 00004F00  204A                     movea.l    A0, A2
  7417. 00004F02  D1ED FEA2                add.l      A0, [A5 - 0x15E]
  7418. 00004F06  2F08                     move.l     -[A7], A0
  7419. 00004F08  204B                     movea.l    A0, A3
  7420. 00004F0A  D1CC                     add.l      A0, A4
  7421. 00004F0C  3F10                     move.w     -[A7], [A0]
  7422. 00004F0E  4EBA FE00                jsr        [PC - 0x200 /* 00004D10 */]
  7423. 00004F12  508F                     addq.l     A7, 8
  7424. 00004F14  5246                     addq.w     D6, 1
  7425. 00004F16  548C                     addq.l     A4, 2
  7426. 00004F18  45EA 0026                lea.l      A2, [A2 + 0x26]
  7427. label00004F1C:
  7428. 00004F1C  BE46                     cmp.w      D7, D6
  7429. 00004F1E  6EDC                     bgt        -0x22 /* 00004EFC */
  7430. 00004F20  6002                     bra        +0x4 /* 00004F24 */
  7431. label00004F22:
  7432. 00004F22  7A94                     moveq.l    D5, 0xFFFFFF94
  7433. label00004F24:
  7434. 00004F24  3005                     move.w     D0, D5
  7435. 00004F26  4CDF 1CE0                movem.l    D5,D6,D7,A2,A3,A4, [A7]+
  7436. 00004F2A  4E5E                     unlink     A6
  7437. 00004F2C  4E75                     rts
  7438. fn00004F2E:
  7439. 00004F2E  48E7 0118                movem.l    -[A7], D7,A3,A4
  7440. 00004F32  4AAD FEA2                tst.l      [A5 - 0x15E]
  7441. 00004F36  6726                     beq        +0x28 /* 00004F5E */
  7442. 00004F38  7E00                     moveq.l    D7, 0x00
  7443. 00004F3A  97CB                     sub.l      A3, A3
  7444. 00004F3C  6014                     bra        +0x16 /* 00004F52 */
  7445. label00004F3E:
  7446. 00004F3E  204B                     movea.l    A0, A3
  7447. 00004F40  D1ED FEA2                add.l      A0, [A5 - 0x15E]
  7448. 00004F44  2F08                     move.l     -[A7], A0
  7449. 00004F46  4EBA FF1A                jsr        [PC - 0xE6 /* 00004E62 */]
  7450. 00004F4A  588F                     addq.l     A7, 4
  7451. 00004F4C  5247                     addq.w     D7, 1
  7452. 00004F4E  47EB 0026                lea.l      A3, [A3 + 0x26]
  7453. label00004F52:
  7454. 00004F52  BE6D FEA0                cmp.w      D7, [A5 - 0x160]
  7455. 00004F56  6DE6                     blt        -0x18 /* 00004F3E */
  7456. 00004F58  206D FEA2                movea.l    A0, [A5 - 0x15E]
  7457. 00004F5C  A01F                     syscall    DisposPtr/DisposePtr
  7458. label00004F5E:
  7459. 00004F5E  4CDF 1880                movem.l    D7,A3,A4, [A7]+
  7460. 00004F62  4E75                     rts
  7461. fn00004F64:
  7462. 00004F64  4E56 0000                link       A6, 0
  7463. 00004F68  48E7 0318                movem.l    -[A7], D6,D7,A3,A4
  7464. 00004F6C  266E 0008                movea.l    A3, [A6 + 0x8]
  7465. 00004F70  284B                     movea.l    A4, A3
  7466. 00004F72  D9EE 000C                add.l      A4, [A6 + 0xC]
  7467. 00004F76  600A                     bra        +0xC /* 00004F82 */
  7468. label00004F78:
  7469. 00004F78  1E13                     move.b     D7, [A3]
  7470. 00004F7A  1C14                     move.b     D6, [A4]
  7471. 00004F7C  1887                     move.b     [A4], D7
  7472. 00004F7E  16C6                     move.b     [A3]+, D6
  7473. 00004F80  538C                     subq.l     A4, 1
  7474. label00004F82:
  7475. 00004F82  B9CB                     cmpa.l     A4, A3
  7476. 00004F84  62F2                     bhi        -0xC /* 00004F78 */
  7477. 00004F86  4CDF 18C0                movem.l    D6,D7,A3,A4, [A7]+
  7478. 00004F8A  4E5E                     unlink     A6
  7479. 00004F8C  4E75                     rts
  7480. fn00004F8E:
  7481. 00004F8E  4E56 0000                link       A6, 0
  7482. 00004F92  48E7 0108                movem.l    -[A7], D7,A4
  7483. 00004F96  286E 0008                movea.l    A4, [A6 + 0x8]
  7484. 00004F9A  42AC 0044                clr.l      [A4 + 0x44]
  7485. 00004F9E  42AC 005C                clr.l      [A4 + 0x5C]
  7486. 00004FA2  42AC 0060                clr.l      [A4 + 0x60]
  7487. 00004FA6  197C 003C 0065           move.b     [A4 + 0x65], 0x3C /* '<' */
  7488. 00004FAC  422C 0064                clr.b      [A4 + 0x64]
  7489. 00004FB0  7E01                     moveq.l    D7, 0x01
  7490. 00004FB2  1007                     move.b     D0, D7
  7491. 00004FB4  4CDF 1080                movem.l    D7,A4, [A7]+
  7492. 00004FB8  4E5E                     unlink     A6
  7493. 00004FBA  4E75                     rts
  7494. fn00004FBC:
  7495. 00004FBC  4E56 0000                link       A6, 0
  7496. 00004FC0  4E5E                     unlink     A6
  7497. 00004FC2  4E75                     rts
  7498. fn00004FC4:
  7499. 00004FC4  4E56 0000                link       A6, 0
  7500. 00004FC8  4A6D FEDA                tst.w      [A5 - 0x126]
  7501. 00004FCC  670E                     beq        +0x10 /* 00004FDC */
  7502. 00004FCE  1F2E 000C                move.b     -[A7], [A6 + 0xC]
  7503. 00004FD2  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  7504. 00004FD6  4EBA FEEA                jsr        [PC - 0x116 /* 00004EC2 */]
  7505. 00004FDA  6002                     bra        +0x4 /* 00004FDE */
  7506. label00004FDC:
  7507. 00004FDC  7000                     moveq.l    D0, 0x00
  7508. label00004FDE:
  7509. 00004FDE  4E5E                     unlink     A6
  7510. 00004FE0  4E75                     rts
  7511. 00004FE2  4EBA FF4A                jsr        [PC - 0xB6 /* 00004F2E */]
  7512. 00004FE6  4E75                     rts
  7513. fn00004FE8:
  7514. 00004FE8  4E56 FFEC                link       A6, -0x0014
  7515. 00004FEC  48E7 0108                movem.l    -[A7], D7,A4
  7516. 00004FF0  7E00                     moveq.l    D7, 0x00
  7517. 00004FF2  1B7C 0001 FEB0           move.b     [A5 - 0x150], 0x1
  7518. 00004FF8  3B7C 0100 FEB2           move.w     [A5 - 0x14E], 0x100
  7519. 00004FFE  3B7C 0003 FEA6           move.w     [A5 - 0x15A], 0x3
  7520. 00005004  426D FEA8                clr.w      [A5 - 0x158]
  7521. 00005008  42AD FEBC                clr.l      [A5 - 0x144]
  7522. 0000500C  1B7C 0001 FEAA           move.b     [A5 - 0x156], 0x1
  7523. 00005012  42AD FEB4                clr.l      [A5 - 0x14C]
  7524. 00005016  42AD FEB8                clr.l      [A5 - 0x148]
  7525. 0000501A  42AD FEA2                clr.l      [A5 - 0x15E]
  7526. 0000501E  4267                     clr.w      -[A7]
  7527. 00005020  3F3C 0001                move.w     -[A7], 0x1
  7528. 00005024  486E FFF0                pea.l      [A6 - 0x10]
  7529. 00005028  4EBA E6F8                jsr        [PC - 0x1908 /* 00003722 */]
  7530. 0000502C  4A5F                     tst.w      [A7]+
  7531. 0000502E  6606                     bne        +0x8 /* 00005036 */
  7532. 00005030  3B6E FFF4 FEB2           move.w     [A5 - 0x14E], [A6 - 0xC]
  7533. label00005036:
  7534. 00005036  0C6D 0600 FEB2           cmpi.w     [A5 - 0x14E], 0x600
  7535. 0000503C  6D76                     blt        +0x78 /* 000050B4 */
  7536. 0000503E  3B6E 0008 FEDA           move.w     [A5 - 0x126], [A6 + 0x8]
  7537. 00005044  7068                     moveq.l    D0, 0x68
  7538. 00005046  C1EE 0008                muls.w     D0, [A6 + 0x8]
  7539. 0000504A  A31E                     syscall    NewPtrClear, flags=3
  7540. 0000504C  2B48 FEDC                move.l     [A5 - 0x124], A0
  7541. 00005050  2008                     move.l     D0, A0
  7542. 00005052  675E                     beq        +0x60 /* 000050B2 */
  7543. 00005054  7E00                     moveq.l    D7, 0x00
  7544. 00005056  99CC                     sub.l      A4, A4
  7545. 00005058  6014                     bra        +0x16 /* 0000506E */
  7546. label0000505A:
  7547. 0000505A  204C                     movea.l    A0, A4
  7548. 0000505C  D1ED FEDC                add.l      A0, [A5 - 0x124]
  7549. 00005060  2F08                     move.l     -[A7], A0
  7550. 00005062  4EBA FF2A                jsr        [PC - 0xD6 /* 00004F8E */]
  7551. 00005066  588F                     addq.l     A7, 4
  7552. 00005068  5247                     addq.w     D7, 1
  7553. 0000506A  49EC 0068                lea.l      A4, [A4 + 0x68]
  7554. label0000506E:
  7555. 0000506E  BE6D FEDA                cmp.w      D7, [A5 - 0x126]
  7556. 00005072  6DE6                     blt        -0x18 /* 0000505A */
  7557. 00005074  41ED 0102                lea.l      A0, [A5 + 0x102 /* export_28 */]
  7558. 00005078  2B48 FED0                move.l     [A5 - 0x130], A0
  7559. 0000507C  3B7C 0001 FED4           move.w     [A5 - 0x12C], 0x1
  7560. 00005082  3B7C 0001 FECE           move.w     [A5 - 0x132], 0x1
  7561. 00005088  42AD FECA                clr.l      [A5 - 0x136]
  7562. 0000508C  426D FED6                clr.w      [A5 - 0x12A]
  7563. 00005090  422D FED8                clr.b      [A5 - 0x128]
  7564. 00005094  41ED FECA                lea.l      A0, [A5 - 0x136]
  7565. 00005098  A033                     syscall    VInstall
  7566. 0000509A  3E00                     move.w     D7, D0
  7567. 0000509C  4A47                     tst.w      D7
  7568. 0000509E  670C                     beq        +0xE /* 000050AC */
  7569. 000050A0  206D FEDC                movea.l    A0, [A5 - 0x124]
  7570. 000050A4  A01F                     syscall    DisposPtr/DisposePtr
  7571. 000050A6  42AD FEDC                clr.l      [A5 - 0x124]
  7572. 000050AA  6008                     bra        +0xA /* 000050B4 */
  7573. label000050AC:
  7574. 000050AC  422D FEAA                clr.b      [A5 - 0x156]
  7575. 000050B0  6002                     bra        +0x4 /* 000050B4 */
  7576. label000050B2:
  7577. 000050B2  7E94                     moveq.l    D7, 0xFFFFFF94
  7578. label000050B4:
  7579. 000050B4  3007                     move.w     D0, D7
  7580. 000050B6  4CDF 1080                movem.l    D7,A4, [A7]+
  7581. 000050BA  4E5E                     unlink     A6
  7582. 000050BC  4E75                     rts
  7583. fn000050BE:
  7584. 000050BE  48E7 0108                movem.l    -[A7], D7,A4
  7585. 000050C2  1B7C 0001 FED8           move.b     [A5 - 0x128], 0x1
  7586. 000050C8  422D FEAA                clr.b      [A5 - 0x156]
  7587. 000050CC  4A6D FEDA                tst.w      [A5 - 0x126]
  7588. 000050D0  673E                     beq        +0x40 /* 00005110 */
  7589. 000050D2  4EBA 0558                jsr        [PC + 0x558 /* 0000562C */]
  7590. 000050D6  41ED FECA                lea.l      A0, [A5 - 0x136]
  7591. 000050DA  A034                     syscall    VRemove
  7592. 000050DC  7E00                     moveq.l    D7, 0x00
  7593. 000050DE  99CC                     sub.l      A4, A4
  7594. 000050E0  6014                     bra        +0x16 /* 000050F6 */
  7595. label000050E2:
  7596. 000050E2  204C                     movea.l    A0, A4
  7597. 000050E4  D1ED FEDC                add.l      A0, [A5 - 0x124]
  7598. 000050E8  2F08                     move.l     -[A7], A0
  7599. 000050EA  4EBA FED0                jsr        [PC - 0x130 /* 00004FBC */]
  7600. 000050EE  588F                     addq.l     A7, 4
  7601. 000050F0  5247                     addq.w     D7, 1
  7602. 000050F2  49EC 0068                lea.l      A4, [A4 + 0x68]
  7603. label000050F6:
  7604. 000050F6  BE6D FEDA                cmp.w      D7, [A5 - 0x126]
  7605. 000050FA  6DE6                     blt        -0x18 /* 000050E2 */
  7606. 000050FC  4AAD FEDC                tst.l      [A5 - 0x124]
  7607. 00005100  670A                     beq        +0xC /* 0000510C */
  7608. 00005102  206D FEDC                movea.l    A0, [A5 - 0x124]
  7609. 00005106  A01F                     syscall    DisposPtr/DisposePtr
  7610. 00005108  42AD FEDC                clr.l      [A5 - 0x124]
  7611. label0000510C:
  7612. 0000510C  4EBA FE20                jsr        [PC - 0x1E0 /* 00004F2E */]
  7613. label00005110:
  7614. 00005110  4CDF 1080                movem.l    D7,A4, [A7]+
  7615. 00005114  4E75                     rts
  7616. fn00005116:
  7617. 00005116  48E7 0108                movem.l    -[A7], D7,A4
  7618. 0000511A  4A2D FEAA                tst.b      [A5 - 0x156]
  7619. 0000511E  663C                     bne        +0x3E /* 0000515C */
  7620. 00005120  2B6D FEBC FEC0           move.l     [A5 - 0x140], [A5 - 0x144]
  7621. 00005126  1B7C 0001 FED8           move.b     [A5 - 0x128], 0x1
  7622. 0000512C  4EBA 04FE                jsr        [PC + 0x4FE /* 0000562C */]
  7623. 00005130  41ED FECA                lea.l      A0, [A5 - 0x136]
  7624. 00005134  A034                     syscall    VRemove
  7625. 00005136  1B7C 0001 FEAA           move.b     [A5 - 0x156], 0x1
  7626. 0000513C  7E00                     moveq.l    D7, 0x00
  7627. 0000513E  99CC                     sub.l      A4, A4
  7628. 00005140  6014                     bra        +0x16 /* 00005156 */
  7629. label00005142:
  7630. 00005142  204C                     movea.l    A0, A4
  7631. 00005144  D1ED FEDC                add.l      A0, [A5 - 0x124]
  7632. 00005148  2F08                     move.l     -[A7], A0
  7633. 0000514A  4EBA FE70                jsr        [PC - 0x190 /* 00004FBC */]
  7634. 0000514E  588F                     addq.l     A7, 4
  7635. 00005150  5247                     addq.w     D7, 1
  7636. 00005152  49EC 0068                lea.l      A4, [A4 + 0x68]
  7637. label00005156:
  7638. 00005156  BE6D FEDA                cmp.w      D7, [A5 - 0x126]
  7639. 0000515A  6DE6                     blt        -0x18 /* 00005142 */
  7640. label0000515C:
  7641. 0000515C  4CDF 1080                movem.l    D7,A4, [A7]+
  7642. 00005160  4E75                     rts
  7643. fn00005162:
  7644. 00005162  48E7 0108                movem.l    -[A7], D7,A4
  7645. 00005166  4A2D FEAA                tst.b      [A5 - 0x156]
  7646. 0000516A  6734                     beq        +0x36 /* 000051A0 */
  7647. 0000516C  422D FEAA                clr.b      [A5 - 0x156]
  7648. 00005170  2B6D FEC0 FEBC           move.l     [A5 - 0x144], [A5 - 0x140]
  7649. 00005176  7E00                     moveq.l    D7, 0x00
  7650. 00005178  99CC                     sub.l      A4, A4
  7651. 0000517A  6014                     bra        +0x16 /* 00005190 */
  7652. label0000517C:
  7653. 0000517C  204C                     movea.l    A0, A4
  7654. 0000517E  D1ED FEDC                add.l      A0, [A5 - 0x124]
  7655. 00005182  2F08                     move.l     -[A7], A0
  7656. 00005184  4EBA FE08                jsr        [PC - 0x1F8 /* 00004F8E */]
  7657. 00005188  588F                     addq.l     A7, 4
  7658. 0000518A  5247                     addq.w     D7, 1
  7659. 0000518C  49EC 0068                lea.l      A4, [A4 + 0x68]
  7660. label00005190:
  7661. 00005190  BE6D FEDA                cmp.w      D7, [A5 - 0x126]
  7662. 00005194  6DE6                     blt        -0x18 /* 0000517C */
  7663. 00005196  422D FED8                clr.b      [A5 - 0x128]
  7664. 0000519A  41ED FECA                lea.l      A0, [A5 - 0x136]
  7665. 0000519E  A033                     syscall    VInstall
  7666. label000051A0:
  7667. 000051A0  4CDF 1080                movem.l    D7,A4, [A7]+
  7668. 000051A4  4E75                     rts
  7669. 000051A6  4E56 FFFC                link       A6, -0x0004
  7670. 000051AA  48E7 0738                movem.l    -[A7], D5,D6,D7,A2,A3,A4
  7671. 000051AE  246E 0008                movea.l    A2, [A6 + 0x8]
  7672. 000051B2  284A                     movea.l    A4, A2
  7673. 000051B4  7E00                     moveq.l    D7, 0x00
  7674. 000051B6  6002                     bra        +0x4 /* 000051BA */
  7675. label000051B8:
  7676. 000051B8  5247                     addq.w     D7, 1
  7677. label000051BA:
  7678. 000051BA  0C5C FFFF                cmpi.w     [A4]+, 0xFFFF
  7679. 000051BE  66F8                     bne        -0x6 /* 000051B8 */
  7680. 000051C0  7A26                     moveq.l    D5, 0x26
  7681. 000051C2  CBC7                     muls.w     D5, D7
  7682. 000051C4  4A47                     tst.w      D7
  7683. 000051C6  6F74                     ble        +0x76 /* 0000523C */
  7684. 000051C8  7C00                     moveq.l    D6, 0x00
  7685. 000051CA  99CC                     sub.l      A4, A4
  7686. 000051CC  6064                     bra        +0x66 /* 00005232 */
  7687. label000051CE:
  7688. 000051CE  1F3C 0001                move.b     -[A7], 0x1
  7689. 000051D2  A99B                     syscall    SetResLoad
  7690. 000051D4  42A7                     clr.l      -[A7]
  7691. 000051D6  2F3C 6373 6E64           move.l     -[A7], 0x63736E64 /* 'csnd' */
  7692. 000051DC  204A                     movea.l    A0, A2
  7693. 000051DE  D1CC                     add.l      A0, A4
  7694. 000051E0  3F10                     move.w     -[A7], [A0]
  7695. 000051E2  A9A0                     syscall    GetResource
  7696. 000051E4  265F                     movea.l    A3, [A7]+
  7697. 000051E6  200B                     move.l     D0, A3
  7698. 000051E8  6626                     bne        +0x28 /* 00005210 */
  7699. 000051EA  4227                     clr.b      -[A7]
  7700. 000051EC  A99B                     syscall    SetResLoad
  7701. 000051EE  42A7                     clr.l      -[A7]
  7702. 000051F0  2F3C 736E 6420           move.l     -[A7], 0x736E6420 /* 'snd ' */
  7703. 000051F6  204A                     movea.l    A0, A2
  7704. 000051F8  D1CC                     add.l      A0, A4
  7705. 000051FA  3F10                     move.w     -[A7], [A0]
  7706. 000051FC  A9A0                     syscall    GetResource
  7707. 000051FE  265F                     movea.l    A3, [A7]+
  7708. 00005200  200B                     move.l     D0, A3
  7709. 00005202  6722                     beq        +0x24 /* 00005226 */
  7710. 00005204  42A7                     clr.l      -[A7]
  7711. 00005206  2F0B                     move.l     -[A7], A3
  7712. 00005208  A9A5                     syscall    GetResourceSizeOnDisk/SizeResource/SizeRsrc
  7713. 0000520A  2D5F FFFC                move.l     [A6 - 0x4], [A7]+
  7714. 0000520E  6016                     bra        +0x18 /* 00005226 */
  7715. label00005210:
  7716. 00005210  204B                     movea.l    A0, A3
  7717. 00005212  A029                     syscall    HLock
  7718. 00005214  43EE FFFC                lea.l      A1, [A6 - 0x4]
  7719. 00005218  7004                     moveq.l    D0, 0x04
  7720. 0000521A  2053                     movea.l    A0, [A3]
  7721. 0000521C  A02E                     syscall    BlockMove/BlockMoveData
  7722. 0000521E  204B                     movea.l    A0, A3
  7723. 00005220  A02A                     syscall    HUnlock
  7724. 00005222  2F0B                     move.l     -[A7], A3
  7725. 00005224  A9A3                     syscall    ReleaseResource
  7726. label00005226:
  7727. 00005226  200B                     move.l     D0, A3
  7728. 00005228  6704                     beq        +0x6 /* 0000522E */
  7729. 0000522A  DAAE FFFC                add.l      D5, [A6 - 0x4]
  7730. label0000522E:
  7731. 0000522E  5246                     addq.w     D6, 1
  7732. 00005230  548C                     addq.l     A4, 2
  7733. label00005232:
  7734. 00005232  BE46                     cmp.w      D7, D6
  7735. 00005234  6E98                     bgt        -0x66 /* 000051CE */
  7736. 00005236  1F3C 0001                move.b     -[A7], 0x1
  7737. 0000523A  A99B                     syscall    SetResLoad
  7738. label0000523C:
  7739. 0000523C  2005                     move.l     D0, D5
  7740. 0000523E  4CDF 1CE0                movem.l    D5,D6,D7,A2,A3,A4, [A7]+
  7741. 00005242  4E5E                     unlink     A6
  7742. 00005244  4E75                     rts
  7743. 00005246  4E56 0000                link       A6, 0
  7744. 0000524A  48E7 0018                movem.l    -[A7], A3,A4
  7745. 0000524E  99CC                     sub.l      A4, A4
  7746. 00005250  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  7747. 00005254  4EBA F69C                jsr        [PC - 0x964 /* 000048F2 */]
  7748. 00005258  2640                     movea.l    A3, D0
  7749. 0000525A  200B                     move.l     D0, A3
  7750. 0000525C  548F                     addq.l     A7, 2
  7751. 0000525E  6704                     beq        +0x6 /* 00005264 */
  7752. 00005260  286B 000C                movea.l    A4, [A3 + 0xC]
  7753. label00005264:
  7754. 00005264  200C                     move.l     D0, A4
  7755. 00005266  4CDF 1800                movem.l    A3,A4, [A7]+
  7756. 0000526A  4E5E                     unlink     A6
  7757. 0000526C  4E75                     rts
  7758. fn0000526E:
  7759. 0000526E  4E56 0000                link       A6, 0
  7760. 00005272  48E7 0108                movem.l    -[A7], D7,A4
  7761. 00005276  7E00                     moveq.l    D7, 0x00
  7762. 00005278  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  7763. 0000527C  4EBA F674                jsr        [PC - 0x98C /* 000048F2 */]
  7764. 00005280  2840                     movea.l    A4, D0
  7765. 00005282  200C                     move.l     D0, A4
  7766. 00005284  548F                     addq.l     A7, 2
  7767. 00005286  6704                     beq        +0x6 /* 0000528C */
  7768. 00005288  2E2C 0010                move.l     D7, [A4 + 0x10]
  7769. label0000528C:
  7770. 0000528C  2007                     move.l     D0, D7
  7771. 0000528E  4CDF 1080                movem.l    D7,A4, [A7]+
  7772. 00005292  4E5E                     unlink     A6
  7773. 00005294  4E75                     rts
  7774. 00005296  4E56 0000                link       A6, 0
  7775. 0000529A  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  7776. 0000529E  4EBA FFCE                jsr        [PC - 0x32 /* 0000526E */]
  7777. 000052A2  2F00                     move.l     -[A7], D0
  7778. 000052A4  2F2E 000A                move.l     -[A7], [A6 + 0xA]
  7779. 000052A8  4EBA F836                jsr        [PC - 0x7CA /* 00004AE0 */]
  7780. 000052AC  4E5E                     unlink     A6
  7781. 000052AE  4E75                     rts
  7782. fn000052B0:
  7783. 000052B0  4E56 0000                link       A6, 0
  7784. 000052B4  48E7 0108                movem.l    -[A7], D7,A4
  7785. 000052B8  7E00                     moveq.l    D7, 0x00
  7786. 000052BA  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  7787. 000052BE  4EBA F632                jsr        [PC - 0x9CE /* 000048F2 */]
  7788. 000052C2  2840                     movea.l    A4, D0
  7789. 000052C4  200C                     move.l     D0, A4
  7790. 000052C6  548F                     addq.l     A7, 2
  7791. 000052C8  6704                     beq        +0x6 /* 000052CE */
  7792. 000052CA  2E2C 001E                move.l     D7, [A4 + 0x1E]
  7793. label000052CE:
  7794. 000052CE  2007                     move.l     D0, D7
  7795. 000052D0  4CDF 1080                movem.l    D7,A4, [A7]+
  7796. 000052D4  4E5E                     unlink     A6
  7797. 000052D6  4E75                     rts
  7798. 000052D8  4E56 0000                link       A6, 0
  7799. 000052DC  3B6E 0008 FEA6           move.w     [A5 - 0x15A], [A6 + 0x8]
  7800. 000052E2  4E5E                     unlink     A6
  7801. 000052E4  4E75                     rts
  7802. 000052E6  4E56 0000                link       A6, 0
  7803. 000052EA  42A7                     clr.l      -[A7]
  7804. 000052EC  42A7                     clr.l      -[A7]
  7805. 000052EE  42A7                     clr.l      -[A7]
  7806. 000052F0  42A7                     clr.l      -[A7]
  7807. 000052F2  3F3C FFFF                move.w     -[A7], 0xFFFF
  7808. 000052F6  2F2E 0010                move.l     -[A7], [A6 + 0x10]
  7809. 000052FA  2F2E 000C                move.l     -[A7], [A6 + 0xC]
  7810. 000052FE  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  7811. 00005302  4EBA F6EE                jsr        [PC - 0x912 /* 000049F2 */]
  7812. 00005306  4E5E                     unlink     A6
  7813. 00005308  4E75                     rts
  7814. 0000530A  4E56 0000                link       A6, 0
  7815. 0000530E  2F0C                     move.l     -[A7], A4
  7816. 00005310  4A2D FEAA                tst.b      [A5 - 0x156]
  7817. 00005314  662A                     bne        +0x2C /* 00005340 */
  7818. 00005316  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  7819. 0000531A  4EBA F69C                jsr        [PC - 0x964 /* 000049B8 */]
  7820. 0000531E  2840                     movea.l    A4, D0
  7821. 00005320  200C                     move.l     D0, A4
  7822. 00005322  548F                     addq.l     A7, 2
  7823. 00005324  671A                     beq        +0x1C /* 00005340 */
  7824. 00005326  396E 0008 0036           move.w     [A4 + 0x36], [A6 + 0x8]
  7825. 0000532C  296E 000A 0026           move.l     [A4 + 0x26], [A6 + 0xA]
  7826. 00005332  486C 001E                pea.l      [A4 + 0x1E]
  7827. 00005336  3F3C 0068                move.w     -[A7], 0x68 /* 'h' */
  7828. 0000533A  4EBA EB06                jsr        [PC - 0x14FA /* 00003E42 */]
  7829. 0000533E  5C8F                     addq.l     A7, 6
  7830. label00005340:
  7831. 00005340  285F                     movea.l    A4, [A7]+
  7832. 00005342  4E5E                     unlink     A6
  7833. 00005344  4E75                     rts
  7834. fn00005346:
  7835. 00005346  4E56 0000                link       A6, 0
  7836. 0000534A  48E7 0318                movem.l    -[A7], D6,D7,A3,A4
  7837. 0000534E  2E2E 000A                move.l     D7, [A6 + 0xA]
  7838. 00005352  4A2D FEAA                tst.b      [A5 - 0x156]
  7839. 00005356  6652                     bne        +0x54 /* 000053AA */
  7840. 00005358  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  7841. 0000535C  4EBA F594                jsr        [PC - 0xA6C /* 000048F2 */]
  7842. 00005360  2840                     movea.l    A4, D0
  7843. 00005362  200C                     move.l     D0, A4
  7844. 00005364  548F                     addq.l     A7, 2
  7845. 00005366  6742                     beq        +0x44 /* 000053AA */
  7846. 00005368  4A14                     tst.b      [A4]
  7847. 0000536A  6710                     beq        +0x12 /* 0000537C */
  7848. 0000536C  2F2C 0010                move.l     -[A7], [A4 + 0x10]
  7849. 00005370  2F2C 000C                move.l     -[A7], [A4 + 0xC]
  7850. 00005374  4EBA FBEE                jsr        [PC - 0x412 /* 00004F64 */]
  7851. 00005378  4214                     clr.b      [A4]
  7852. 0000537A  508F                     addq.l     A7, 8
  7853. label0000537C:
  7854. 0000537C  4A87                     tst.l      D7
  7855. 0000537E  6604                     bne        +0x6 /* 00005384 */
  7856. 00005380  2E2C 001E                move.l     D7, [A4 + 0x1E]
  7857. label00005384:
  7858. 00005384  2C2C 0010                move.l     D6, [A4 + 0x10]
  7859. 00005388  70FA                     moveq.l    D0, 0xFFFFFFFA
  7860. 0000538A  D0AC 000C                add.l      D0, [A4 + 0xC]
  7861. 0000538E  2640                     movea.l    A3, D0
  7862. 00005390  42A7                     clr.l      -[A7]
  7863. 00005392  42A7                     clr.l      -[A7]
  7864. 00005394  42A7                     clr.l      -[A7]
  7865. 00005396  42A7                     clr.l      -[A7]
  7866. 00005398  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  7867. 0000539C  2F07                     move.l     -[A7], D7
  7868. 0000539E  2F06                     move.l     -[A7], D6
  7869. 000053A0  2F0B                     move.l     -[A7], A3
  7870. 000053A2  4EBA F64E                jsr        [PC - 0x9B2 /* 000049F2 */]
  7871. 000053A6  4FEF 001E                lea.l      A7, [A7 + 0x1E]
  7872. label000053AA:
  7873. 000053AA  4CDF 18C0                movem.l    D6,D7,A3,A4, [A7]+
  7874. 000053AE  4E5E                     unlink     A6
  7875. 000053B0  4E75                     rts
  7876. 000053B2  4E56 0000                link       A6, 0
  7877. 000053B6  48E7 0318                movem.l    -[A7], D6,D7,A3,A4
  7878. 000053BA  2E2E 000A                move.l     D7, [A6 + 0xA]
  7879. 000053BE  4A2D FEAA                tst.b      [A5 - 0x156]
  7880. 000053C2  6654                     bne        +0x56 /* 00005418 */
  7881. 000053C4  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  7882. 000053C8  4EBA F528                jsr        [PC - 0xAD8 /* 000048F2 */]
  7883. 000053CC  2840                     movea.l    A4, D0
  7884. 000053CE  200C                     move.l     D0, A4
  7885. 000053D0  548F                     addq.l     A7, 2
  7886. 000053D2  6744                     beq        +0x46 /* 00005418 */
  7887. 000053D4  4A14                     tst.b      [A4]
  7888. 000053D6  6612                     bne        +0x14 /* 000053EA */
  7889. 000053D8  2F2C 0010                move.l     -[A7], [A4 + 0x10]
  7890. 000053DC  2F2C 000C                move.l     -[A7], [A4 + 0xC]
  7891. 000053E0  4EBA FB82                jsr        [PC - 0x47E /* 00004F64 */]
  7892. 000053E4  18BC 0001                move.b     [A4], 0x1
  7893. 000053E8  508F                     addq.l     A7, 8
  7894. label000053EA:
  7895. 000053EA  4A87                     tst.l      D7
  7896. 000053EC  6604                     bne        +0x6 /* 000053F2 */
  7897. 000053EE  2E2C 001E                move.l     D7, [A4 + 0x1E]
  7898. label000053F2:
  7899. 000053F2  2C2C 0010                move.l     D6, [A4 + 0x10]
  7900. 000053F6  70FA                     moveq.l    D0, 0xFFFFFFFA
  7901. 000053F8  D0AC 000C                add.l      D0, [A4 + 0xC]
  7902. 000053FC  2640                     movea.l    A3, D0
  7903. 000053FE  42A7                     clr.l      -[A7]
  7904. 00005400  42A7                     clr.l      -[A7]
  7905. 00005402  42A7                     clr.l      -[A7]
  7906. 00005404  42A7                     clr.l      -[A7]
  7907. 00005406  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  7908. 0000540A  2F07                     move.l     -[A7], D7
  7909. 0000540C  2F06                     move.l     -[A7], D6
  7910. 0000540E  2F0B                     move.l     -[A7], A3
  7911. 00005410  4EBA F5E0                jsr        [PC - 0xA20 /* 000049F2 */]
  7912. 00005414  4FEF 001E                lea.l      A7, [A7 + 0x1E]
  7913. label00005418:
  7914. 00005418  4CDF 18C0                movem.l    D6,D7,A3,A4, [A7]+
  7915. 0000541C  4E5E                     unlink     A6
  7916. 0000541E  4E75                     rts
  7917. 00005420  4E56 0000                link       A6, 0
  7918. 00005424  48E7 0F18                movem.l    -[A7], D4,D5,D6,D7,A3,A4
  7919. 00005428  2E2E 000A                move.l     D7, [A6 + 0xA]
  7920. 0000542C  282E 000E                move.l     D4, [A6 + 0xE]
  7921. 00005430  2A2E 0012                move.l     D5, [A6 + 0x12]
  7922. 00005434  4A2D FEAA                tst.b      [A5 - 0x156]
  7923. 00005438  6662                     bne        +0x64 /* 0000549C */
  7924. 0000543A  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  7925. 0000543E  4EBA F4B2                jsr        [PC - 0xB4E /* 000048F2 */]
  7926. 00005442  2840                     movea.l    A4, D0
  7927. 00005444  200C                     move.l     D0, A4
  7928. 00005446  548F                     addq.l     A7, 2
  7929. 00005448  6752                     beq        +0x54 /* 0000549C */
  7930. 0000544A  4A14                     tst.b      [A4]
  7931. 0000544C  6710                     beq        +0x12 /* 0000545E */
  7932. 0000544E  2F2C 0010                move.l     -[A7], [A4 + 0x10]
  7933. 00005452  2F2C 000C                move.l     -[A7], [A4 + 0xC]
  7934. 00005456  4EBA FB0C                jsr        [PC - 0x4F4 /* 00004F64 */]
  7935. 0000545A  4214                     clr.b      [A4]
  7936. 0000545C  508F                     addq.l     A7, 8
  7937. label0000545E:
  7938. 0000545E  4A87                     tst.l      D7
  7939. 00005460  6604                     bne        +0x6 /* 00005466 */
  7940. 00005462  2E2C 001E                move.l     D7, [A4 + 0x1E]
  7941. label00005466:
  7942. 00005466  70FF                     moveq.l    D0, 0xFFFFFFFF
  7943. 00005468  B085                     cmp.l      D0, D5
  7944. 0000546A  6706                     beq        +0x8 /* 00005472 */
  7945. 0000546C  BAAC 0010                cmp.l      D5, [A4 + 0x10]
  7946. 00005470  6F04                     ble        +0x6 /* 00005476 */
  7947. label00005472:
  7948. 00005472  2A2C 0010                move.l     D5, [A4 + 0x10]
  7949. label00005476:
  7950. 00005476  2C05                     move.l     D6, D5
  7951. 00005478  9C84                     sub.l      D6, D4
  7952. 0000547A  266C 000C                movea.l    A3, [A4 + 0xC]
  7953. 0000547E  47F3 48FA                lea.l      A3, [A3 + D4 - 0x6]
  7954. 00005482  42A7                     clr.l      -[A7]
  7955. 00005484  42A7                     clr.l      -[A7]
  7956. 00005486  2F05                     move.l     -[A7], D5
  7957. 00005488  2F04                     move.l     -[A7], D4
  7958. 0000548A  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  7959. 0000548E  2F07                     move.l     -[A7], D7
  7960. 00005490  2F06                     move.l     -[A7], D6
  7961. 00005492  2F0B                     move.l     -[A7], A3
  7962. 00005494  4EBA F55C                jsr        [PC - 0xAA4 /* 000049F2 */]
  7963. 00005498  4FEF 001E                lea.l      A7, [A7 + 0x1E]
  7964. label0000549C:
  7965. 0000549C  4CDF 18F0                movem.l    D4,D5,D6,D7,A3,A4, [A7]+
  7966. 000054A0  4E5E                     unlink     A6
  7967. 000054A2  4E75                     rts
  7968. 000054A4  4E56 FFFC                link       A6, -0x0004
  7969. 000054A8  48E7 1F08                movem.l    -[A7], D3,D4,D5,D6,D7,A4
  7970. 000054AC  2E2E 000A                move.l     D7, [A6 + 0xA]
  7971. 000054B0  262E 0012                move.l     D3, [A6 + 0x12]
  7972. 000054B4  4A2D FEAA                tst.b      [A5 - 0x156]
  7973. 000054B8  666E                     bne        +0x70 /* 00005528 */
  7974. 000054BA  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  7975. 000054BE  4EBA F432                jsr        [PC - 0xBCE /* 000048F2 */]
  7976. 000054C2  2840                     movea.l    A4, D0
  7977. 000054C4  200C                     move.l     D0, A4
  7978. 000054C6  548F                     addq.l     A7, 2
  7979. 000054C8  675E                     beq        +0x60 /* 00005528 */
  7980. 000054CA  4A14                     tst.b      [A4]
  7981. 000054CC  6710                     beq        +0x12 /* 000054DE */
  7982. 000054CE  2F2C 0010                move.l     -[A7], [A4 + 0x10]
  7983. 000054D2  2F2C 000C                move.l     -[A7], [A4 + 0xC]
  7984. 000054D6  4EBA FA8C                jsr        [PC - 0x574 /* 00004F64 */]
  7985. 000054DA  4214                     clr.b      [A4]
  7986. 000054DC  508F                     addq.l     A7, 8
  7987. label000054DE:
  7988. 000054DE  4A87                     tst.l      D7
  7989. 000054E0  6604                     bne        +0x6 /* 000054E6 */
  7990. 000054E2  2E2C 001E                move.l     D7, [A4 + 0x1E]
  7991. label000054E6:
  7992. 000054E6  2A2C 0010                move.l     D5, [A4 + 0x10]
  7993. 000054EA  2C05                     move.l     D6, D5
  7994. 000054EC  78FA                     moveq.l    D4, 0xFFFFFFFA
  7995. 000054EE  D8AC 000C                add.l      D4, [A4 + 0xC]
  7996. 000054F2  2844                     movea.l    A4, D4
  7997. 000054F4  BA83                     cmp.l      D5, D3
  7998. 000054F6  6C02                     bge        +0x4 /* 000054FA */
  7999. 000054F8  2605                     move.l     D3, D5
  8000. label000054FA:
  8001. 000054FA  2C03                     move.l     D6, D3
  8002. 000054FC  9CAE 000E                sub.l      D6, [A6 + 0xE]
  8003. 00005500  2004                     move.l     D0, D4
  8004. 00005502  D0AE 000E                add.l      D0, [A6 + 0xE]
  8005. 00005506  2840                     movea.l    A4, D0
  8006. 00005508  42A7                     clr.l      -[A7]
  8007. 0000550A  2F3C FFFF 0100           move.l     -[A7], 0xFFFF0100
  8008. 00005510  2F03                     move.l     -[A7], D3
  8009. 00005512  2F2E 000E                move.l     -[A7], [A6 + 0xE]
  8010. 00005516  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  8011. 0000551A  2F07                     move.l     -[A7], D7
  8012. 0000551C  2F06                     move.l     -[A7], D6
  8013. 0000551E  2F0C                     move.l     -[A7], A4
  8014. 00005520  4EBA F4D0                jsr        [PC - 0xB30 /* 000049F2 */]
  8015. 00005524  4FEF 001E                lea.l      A7, [A7 + 0x1E]
  8016. label00005528:
  8017. 00005528  4CDF 10F8                movem.l    D3,D4,D5,D6,D7,A4, [A7]+
  8018. 0000552C  4E5E                     unlink     A6
  8019. 0000552E  4E75                     rts
  8020. 00005530  4E56 0000                link       A6, 0
  8021. 00005534  48E7 0718                movem.l    -[A7], D5,D6,D7,A3,A4
  8022. 00005538  2E2E 000A                move.l     D7, [A6 + 0xA]
  8023. 0000553C  4A2D FEAA                tst.b      [A5 - 0x156]
  8024. 00005540  666C                     bne        +0x6E /* 000055AE */
  8025. 00005542  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  8026. 00005546  4EBA F3AA                jsr        [PC - 0xC56 /* 000048F2 */]
  8027. 0000554A  2840                     movea.l    A4, D0
  8028. 0000554C  200C                     move.l     D0, A4
  8029. 0000554E  548F                     addq.l     A7, 2
  8030. 00005550  675C                     beq        +0x5E /* 000055AE */
  8031. 00005552  4A14                     tst.b      [A4]
  8032. 00005554  6710                     beq        +0x12 /* 00005566 */
  8033. 00005556  2F2C 0010                move.l     -[A7], [A4 + 0x10]
  8034. 0000555A  2F2C 000C                move.l     -[A7], [A4 + 0xC]
  8035. 0000555E  4EBA FA04                jsr        [PC - 0x5FC /* 00004F64 */]
  8036. 00005562  4214                     clr.b      [A4]
  8037. 00005564  508F                     addq.l     A7, 8
  8038. label00005566:
  8039. 00005566  4A87                     tst.l      D7
  8040. 00005568  6604                     bne        +0x6 /* 0000556E */
  8041. 0000556A  2E2C 001E                move.l     D7, [A4 + 0x1E]
  8042. label0000556E:
  8043. 0000556E  3A2D FEA6                move.w     D5, [A5 - 0x15A]
  8044. 00005572  426D FEA6                clr.w      [A5 - 0x15A]
  8045. 00005576  426D FEA8                clr.w      [A5 - 0x158]
  8046. 0000557A  2C2C 0010                move.l     D6, [A4 + 0x10]
  8047. 0000557E  70FA                     moveq.l    D0, 0xFFFFFFFA
  8048. 00005580  D0AC 000C                add.l      D0, [A4 + 0xC]
  8049. 00005584  2640                     movea.l    A3, D0
  8050. 00005586  42A7                     clr.l      -[A7]
  8051. 00005588  1F3C 0001                move.b     -[A7], 0x1
  8052. 0000558C  3F2E 000E                move.w     -[A7], [A6 + 0xE]
  8053. 00005590  2F2C 0018                move.l     -[A7], [A4 + 0x18]
  8054. 00005594  2F2C 0014                move.l     -[A7], [A4 + 0x14]
  8055. 00005598  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  8056. 0000559C  2F07                     move.l     -[A7], D7
  8057. 0000559E  2F06                     move.l     -[A7], D6
  8058. 000055A0  2F0B                     move.l     -[A7], A3
  8059. 000055A2  4EBA F44E                jsr        [PC - 0xBB2 /* 000049F2 */]
  8060. 000055A6  3B45 FEA6                move.w     [A5 - 0x15A], D5
  8061. 000055AA  4FEF 001E                lea.l      A7, [A7 + 0x1E]
  8062. label000055AE:
  8063. 000055AE  4CDF 18E0                movem.l    D5,D6,D7,A3,A4, [A7]+
  8064. 000055B2  4E5E                     unlink     A6
  8065. 000055B4  4E75                     rts
  8066. 000055B6  4E56 0000                link       A6, 0
  8067. 000055BA  48E7 0318                movem.l    -[A7], D6,D7,A3,A4
  8068. 000055BE  2E2E 000A                move.l     D7, [A6 + 0xA]
  8069. 000055C2  4A2D FEAA                tst.b      [A5 - 0x156]
  8070. 000055C6  665C                     bne        +0x5E /* 00005624 */
  8071. 000055C8  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  8072. 000055CC  4EBA F324                jsr        [PC - 0xCDC /* 000048F2 */]
  8073. 000055D0  2840                     movea.l    A4, D0
  8074. 000055D2  200C                     move.l     D0, A4
  8075. 000055D4  548F                     addq.l     A7, 2
  8076. 000055D6  674C                     beq        +0x4E /* 00005624 */
  8077. 000055D8  4A14                     tst.b      [A4]
  8078. 000055DA  6710                     beq        +0x12 /* 000055EC */
  8079. 000055DC  2F2C 0010                move.l     -[A7], [A4 + 0x10]
  8080. 000055E0  2F2C 000C                move.l     -[A7], [A4 + 0xC]
  8081. 000055E4  4EBA F97E                jsr        [PC - 0x682 /* 00004F64 */]
  8082. 000055E8  4214                     clr.b      [A4]
  8083. 000055EA  508F                     addq.l     A7, 8
  8084. label000055EC:
  8085. 000055EC  4A87                     tst.l      D7
  8086. 000055EE  6604                     bne        +0x6 /* 000055F4 */
  8087. 000055F0  2E2C 001E                move.l     D7, [A4 + 0x1E]
  8088. label000055F4:
  8089. 000055F4  2C2C 0010                move.l     D6, [A4 + 0x10]
  8090. 000055F8  70FA                     moveq.l    D0, 0xFFFFFFFA
  8091. 000055FA  D0AC 000C                add.l      D0, [A4 + 0xC]
  8092. 000055FE  2640                     movea.l    A3, D0
  8093. 00005600  2F2E 000E                move.l     -[A7], [A6 + 0xE]
  8094. 00005604  2F3C FFFF 0100           move.l     -[A7], 0xFFFF0100
  8095. 0000560A  2F2C 0018                move.l     -[A7], [A4 + 0x18]
  8096. 0000560E  2F2C 0014                move.l     -[A7], [A4 + 0x14]
  8097. 00005612  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  8098. 00005616  2F07                     move.l     -[A7], D7
  8099. 00005618  2F06                     move.l     -[A7], D6
  8100. 0000561A  2F0B                     move.l     -[A7], A3
  8101. 0000561C  4EBA F3D4                jsr        [PC - 0xC2C /* 000049F2 */]
  8102. 00005620  4FEF 001E                lea.l      A7, [A7 + 0x1E]
  8103. label00005624:
  8104. 00005624  4CDF 18C0                movem.l    D6,D7,A3,A4, [A7]+
  8105. 00005628  4E5E                     unlink     A6
  8106. 0000562A  4E75                     rts
  8107. fn0000562C:
  8108. 0000562C  48E7 0108                movem.l    -[A7], D7,A4
  8109. 00005630  7E00                     moveq.l    D7, 0x00
  8110. 00005632  99CC                     sub.l      A4, A4
  8111. 00005634  600E                     bra        +0x10 /* 00005644 */
  8112. label00005636:
  8113. 00005636  204C                     movea.l    A0, A4
  8114. 00005638  D1ED FEDC                add.l      A0, [A5 - 0x124]
  8115. 0000563C  4210                     clr.b      [A0]
  8116. 0000563E  5247                     addq.w     D7, 1
  8117. 00005640  49EC 0068                lea.l      A4, [A4 + 0x68]
  8118. label00005644:
  8119. 00005644  BE6D FEDA                cmp.w      D7, [A5 - 0x126]
  8120. 00005648  6DEC                     blt        -0x12 /* 00005636 */
  8121. 0000564A  42A7                     clr.l      -[A7]
  8122. 0000564C  3F3C 0067                move.w     -[A7], 0x67 /* 'g' */
  8123. 00005650  4EBA E7F0                jsr        [PC - 0x1810 /* 00003E42 */]
  8124. 00005654  5C8F                     addq.l     A7, 6
  8125. 00005656  4CDF 1080                movem.l    D7,A4, [A7]+
  8126. 0000565A  4E75                     rts
  8127. fn0000565C:
  8128. 0000565C  4E56 0000                link       A6, 0
  8129. 00005660  2F0C                     move.l     -[A7], A4
  8130. 00005662  4A2D FEAA                tst.b      [A5 - 0x156]
  8131. 00005666  6640                     bne        +0x42 /* 000056A8 */
  8132. 00005668  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  8133. 0000566C  4EBA F34A                jsr        [PC - 0xCB6 /* 000049B8 */]
  8134. 00005670  2840                     movea.l    A4, D0
  8135. 00005672  200C                     move.l     D0, A4
  8136. 00005674  548F                     addq.l     A7, 2
  8137. 00005676  6730                     beq        +0x32 /* 000056A8 */
  8138. 00005678  42AD FEBC                clr.l      [A5 - 0x144]
  8139. 0000567C  42AC 0012                clr.l      [A4 + 0x12]
  8140. 00005680  422C 0042                clr.b      [A4 + 0x42]
  8141. 00005684  42AC 003E                clr.l      [A4 + 0x3E]
  8142. 00005688  396E 0008 0036           move.w     [A4 + 0x36], [A6 + 0x8]
  8143. 0000568E  200D                     move.l     D0, A5
  8144. 00005690  2A78 0904                movea.l    A5, [0x00000904 /* CurrentA5 */]
  8145. 00005694  2940 0038                move.l     [A4 + 0x38], D0
  8146. 00005698  486C 001E                pea.l      [A4 + 0x1E]
  8147. 0000569C  3F3C 0065                move.w     -[A7], 0x65 /* 'e' */
  8148. 000056A0  4EBA E7A0                jsr        [PC - 0x1860 /* 00003E42 */]
  8149. 000056A4  4214                     clr.b      [A4]
  8150. 000056A6  5C8F                     addq.l     A7, 6
  8151. label000056A8:
  8152. 000056A8  285F                     movea.l    A4, [A7]+
  8153. 000056AA  4E5E                     unlink     A6
  8154. 000056AC  4E75                     rts
  8155. fn000056AE:
  8156. 000056AE  48E7 0318                movem.l    -[A7], D6,D7,A3,A4
  8157. 000056B2  7E01                     moveq.l    D7, 0x01
  8158. 000056B4  4A2D FEAA                tst.b      [A5 - 0x156]
  8159. 000056B8  6630                     bne        +0x32 /* 000056EA */
  8160. 000056BA  7C00                     moveq.l    D6, 0x00
  8161. 000056BC  97CB                     sub.l      A3, A3
  8162. 000056BE  6024                     bra        +0x26 /* 000056E4 */
  8163. label000056C0:
  8164. 000056C0  284B                     movea.l    A4, A3
  8165. 000056C2  D9ED FEDC                add.l      A4, [A5 - 0x124]
  8166. 000056C6  4A14                     tst.b      [A4]
  8167. 000056C8  6714                     beq        +0x16 /* 000056DE */
  8168. 000056CA  486C 001E                pea.l      [A4 + 0x1E]
  8169. 000056CE  3F3C 0066                move.w     -[A7], 0x66 /* 'f' */
  8170. 000056D2  4EBA E76E                jsr        [PC - 0x1892 /* 00003E42 */]
  8171. 000056D6  4A80                     tst.l      D0
  8172. 000056D8  5C8F                     addq.l     A7, 6
  8173. 000056DA  6602                     bne        +0x4 /* 000056DE */
  8174. 000056DC  7E00                     moveq.l    D7, 0x00
  8175. label000056DE:
  8176. 000056DE  5246                     addq.w     D6, 1
  8177. 000056E0  47EB 0068                lea.l      A3, [A3 + 0x68]
  8178. label000056E4:
  8179. 000056E4  BC6D FEDA                cmp.w      D6, [A5 - 0x126]
  8180. 000056E8  6DD6                     blt        -0x28 /* 000056C0 */
  8181. label000056EA:
  8182. 000056EA  1007                     move.b     D0, D7
  8183. 000056EC  4CDF 18C0                movem.l    D6,D7,A3,A4, [A7]+
  8184. 000056F0  4E75                     rts
  8185. 000056F2  4E56 0000                link       A6, 0
  8186. 000056F6  48E7 0338                movem.l    -[A7], D6,D7,A2,A3,A4
  8187. 000056FA  266E 0008                movea.l    A3, [A6 + 0x8]
  8188. 000056FE  3C2E 000C                move.w     D6, [A6 + 0xC]
  8189. 00005702  4A2D FEAA                tst.b      [A5 - 0x156]
  8190. 00005706  6630                     bne        +0x32 /* 00005738 */
  8191. 00005708  4EBA FF22                jsr        [PC - 0xDE /* 0000562C */]
  8192. 0000570C  7E00                     moveq.l    D7, 0x00
  8193. 0000570E  95CA                     sub.l      A2, A2
  8194. 00005710  6012                     bra        +0x14 /* 00005724 */
  8195. label00005712:
  8196. 00005712  204B                     movea.l    A0, A3
  8197. 00005714  D1CA                     add.l      A0, A2
  8198. 00005716  3F10                     move.w     -[A7], [A0]
  8199. 00005718  4EBA F1D8                jsr        [PC - 0xE28 /* 000048F2 */]
  8200. 0000571C  2840                     movea.l    A4, D0
  8201. 0000571E  548F                     addq.l     A7, 2
  8202. 00005720  5247                     addq.w     D7, 1
  8203. 00005722  508A                     addq.l     A2, 8
  8204. label00005724:
  8205. 00005724  BC47                     cmp.w      D6, D7
  8206. 00005726  6EEA                     bgt        -0x14 /* 00005712 */
  8207. 00005728  426D FEC4                clr.w      [A5 - 0x13C]
  8208. 0000572C  426D FEC8                clr.w      [A5 - 0x138]
  8209. 00005730  3B46 FEC6                move.w     [A5 - 0x13A], D6
  8210. 00005734  2B4B FEBC                move.l     [A5 - 0x144], A3
  8211. label00005738:
  8212. 00005738  4CDF 1CC0                movem.l    D6,D7,A2,A3,A4, [A7]+
  8213. 0000573C  4E5E                     unlink     A6
  8214. 0000573E  4E75                     rts
  8215. 00005740  2F07                     move.l     -[A7], D7
  8216. 00005742  7E00                     moveq.l    D7, 0x00
  8217. 00005744  4A2D FEAA                tst.b      [A5 - 0x156]
  8218. 00005748  6608                     bne        +0xA /* 00005752 */
  8219. 0000574A  4AAD FEBC                tst.l      [A5 - 0x144]
  8220. 0000574E  6602                     bne        +0x4 /* 00005752 */
  8221. 00005750  7E01                     moveq.l    D7, 0x01
  8222. label00005752:
  8223. 00005752  1007                     move.b     D0, D7
  8224. 00005754  2E1F                     move.l     D7, [A7]+
  8225. 00005756  4E75                     rts
  8226. 00005758  4E56 0000                link       A6, 0
  8227. 0000575C  48E7 0108                movem.l    -[A7], D7,A4
  8228. 00005760  4AAD FEA2                tst.l      [A5 - 0x15E]
  8229. 00005764  6728                     beq        +0x2A /* 0000578E */
  8230. 00005766  7E00                     moveq.l    D7, 0x00
  8231. 00005768  99CC                     sub.l      A4, A4
  8232. 0000576A  601C                     bra        +0x1E /* 00005788 */
  8233. label0000576C:
  8234. 0000576C  A01C                     syscall    FreeMem
  8235. 0000576E  B0AE 0008                cmp.l      D0, [A6 + 0x8]
  8236. 00005772  640E                     bcc        +0x10 /* 00005782 */
  8237. 00005774  204C                     movea.l    A0, A4
  8238. 00005776  D1ED FEA2                add.l      A0, [A5 - 0x15E]
  8239. 0000577A  2F08                     move.l     -[A7], A0
  8240. 0000577C  4EBA F6E4                jsr        [PC - 0x91C /* 00004E62 */]
  8241. 00005780  588F                     addq.l     A7, 4
  8242. label00005782:
  8243. 00005782  5247                     addq.w     D7, 1
  8244. 00005784  49EC 0026                lea.l      A4, [A4 + 0x26]
  8245. label00005788:
  8246. 00005788  BE6D FEA0                cmp.w      D7, [A5 - 0x160]
  8247. 0000578C  6DDE                     blt        -0x20 /* 0000576C */
  8248. label0000578E:
  8249. 0000578E  4CDF 1080                movem.l    D7,A4, [A7]+
  8250. 00005792  4E5E                     unlink     A6
  8251. 00005794  4E75                     rts
  8252. 00005796  4E56 0000                link       A6, 0
  8253. 0000579A  202E 0008                move.l     D0, [A6 + 0x8]
  8254. 0000579E  4E5E                     unlink     A6
  8255. 000057A0  4E75                     rts
  8256. 000057A2  4E56 0000                link       A6, 0
  8257. 000057A6  2F0C                     move.l     -[A7], A4
  8258. 000057A8  3F2E 0008                move.w     -[A7], [A6 + 0x8]
  8259. 000057AC  4EBA F144                jsr        [PC - 0xEBC /* 000048F2 */]
  8260. 000057B0  2840                     movea.l    A4, D0
  8261. 000057B2  200C                     move.l     D0, A4
  8262. 000057B4  548F                     addq.l     A7, 2
  8263. 000057B6  670C                     beq        +0xE /* 000057C4 */
  8264. 000057B8  4A2E 000A                tst.b      [A6 + 0xA]
  8265. 000057BC  57C0                     seq        D0
  8266. 000057BE  4400                     neg.b      D0
  8267. 000057C0  1940 0002                move.b     [A4 + 0x2], D0
  8268. label000057C4:
  8269. 000057C4  285F                     movea.l    A4, [A7]+
  8270. 000057C6  4E5E                     unlink     A6
  8271. 000057C8  4E75                     rts
  8272. 000057CA  4E56 0000                link       A6, 0
  8273. 000057CE  1B6E 0008 FEB0           move.b     [A5 - 0x150], [A6 + 0x8]
  8274. 000057D4  4E5E                     unlink     A6
  8275. 000057D6  4E75                     rts
  8276. 000057D8  6000 008C                bra        +0x8E /* 00005866 */
  8277. 000057DC  5953                     subq.w     [A3], 4
  8278. 000057DE  6F75                     ble        +0x77 /* 00005855 */
  8279. 000057E0  6E64                     bgt        +0x66 /* 00005846 */
  8280. 000057E2  5379 7320 2620           subq.w     [0x73202620], 1
  8281. 000057E8  4D75 7369 6353           chk.w      D6, [[A5 + 0x6353]]
  8282. 000057EE  7973                     moveq.l    D4, 0x73
  8283. 000057F0  20A9 2043                move.l     [A0], [A1 + 0x2043]
  8284. 000057F4  6F70                     ble        +0x72 /* 00005866 */
  8285. 000057F6  7972                     moveq.l    D4, 0x72
  8286. 000057F8  6967                     bvs        +0x69 /* 00005861 */
  8287. 000057FA  6874                     bvc        +0x76 /* 00005870 */
  8288. 000057FC  2031 3938 392D 3139      move.l     D0, [A1 + 0x392D3139 + D3]
  8289. 00005804  3932 2053                move.w     -[A4], [A2 + D2.w + 0x53]
  8290. 00005808  7465                     moveq.l    D2, 0x65
  8291. 0000580A  7665                     moveq.l    D3, 0x65
  8292. 0000580C  2048                     movea.l    A0, A0
  8293. 0000580E  616C                     bsr        +0x6E /* 0000587C */
  8294. 00005810  6573                     bcs        +0x75 /* 00005885 */
  8295. 00005812  2026                     move.l     D0, -[A6]
  8296. 00005814  204A                     movea.l    A0, A2
  8297. 00005816  696D                     bvs        +0x6F /* 00005885 */
  8298. 00005818  204E                     movea.l    A0, A6
  8299. 0000581A  6974                     bvs        +0x76 /* 00005890 */
  8300. 0000581C  6368                     bls        +0x6A /* 00005886 */
  8301. 0000581E  616C                     bsr        +0x6E /* 0000588C */
  8302. 00005820  732C                     moveq.l    D1, 0x2C
  8303. 00005822  2041                     movea.l    A0, D1
  8304. 00005824  6C6C                     bge        +0x6E /* 00005892 */
  8305. 00005826  2052                     movea.l    A0, [A2]
  8306. 00005828  6967                     bvs        +0x69 /* 00005891 */
  8307. 0000582A  6874                     bvc        +0x76 /* 000058A0 */
  8308. 0000582C  7320                     moveq.l    D1, 0x20
  8309. 0000582E  5265                     addq.w     -[A5], 1
  8310. 00005830  7365                     moveq.l    D1, 0x65
  8311. 00005832  7276                     moveq.l    D1, 0x76
  8312. 00005834  6564                     bcs        +0x66 /* 0000589A */
  8313. 00005836  2E4C                     movea.l    A7, A4
  8314. 00005838  6963                     bvs        +0x65 /* 0000589D */
  8315. 0000583A  656E                     bcs        +0x70 /* 000058AA */
  8316. 0000583C  7365                     moveq.l    D1, 0x65
  8317. 0000583E  6420                     bcc        +0x22 /* 00005860 */
  8318. 00005840  746F                     moveq.l    D2, 0x6F
  8319. 00005842  2050                     movea.l    A0, [A0]
  8320. 00005844  7265                     moveq.l    D1, 0x65
  8321. label00005846:
  8322. 00005846  7361                     moveq.l    D1, 0x61
  8323. 00005848  6765                     beq        +0x67 /* 000058AF */
  8324. 0000584A  2053                     movea.l    A0, [A3]
  8325. 0000584C  6F66                     ble        +0x68 /* 000058B4 */
  8326. 0000584E  7477                     moveq.l    D2, 0x77
  8327. 00005850  6172                     bsr        +0x74 /* 000058C4 */
  8328. 00005852  6520                     bcs        +0x22 /* 00005874 */
  8329. 00005854  4465                     neg.w      -[A5]
  8330. 00005856  7665                     moveq.l    D3, 0x65
  8331. 00005858  6C6F                     bge        +0x71 /* 000058C9 */
  8332. 0000585A  7065                     moveq.l    D0, 0x65
  8333. 0000585C  6D65                     blt        +0x67 /* 000058C3 */
  8334. 0000585E  6E74                     bgt        +0x76 /* 000058D4 */
  8335. label00005860:
  8336. 00005860  2C20                     move.l     D6, -[A0]
  8337. 00005862  496E 6300                chk.w      D4, [A6 + 0x6300]
  8338. label00005866:
  8339. 00005866  41FA FFCE                lea.l      A0, [PC - 0x32 /* 00005836, value 0x2E4C6963 '.Lic', pstring "Licensed to Presage Software Developement, Inc" */]
  8340. 0000586A  2008                     move.l     D0, A0
  8341. 0000586C  4E75                     rts
  8342. 0000586E  4E75                     rts
  8343.